{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\Nadja Wehl\Nextcloud\Education Cluster Project\Project Work\Research\SG NW MB Feedback effects Germany\Empirics\Datasets, do-files\DataPreparationlog.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}10 Jun 2024, 19:42:55
{txt}
{com}. 
. 
. **************************************************************************************
. *Stata do-file for:
. *How Education Policies Shape Political Inequality: Analyzing Policy Feedback Effects in Germany 
. ***
. *Data Preparation Do File
. **************************************************************************************
. 
. 
. *Stata version 18
. *Used Packages
. ssc install fre, replace
{txt}checking {hilite:fre} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. ssc install panelview, replace
{txt}checking {hilite:panelview} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. search gr0075 // install manually!
{txt}
{com}. ssc install labutil, replace
{txt}checking {hilite:labutil} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. ssc install sencode, replace
{txt}checking {hilite:sencode} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. search grc1leg // install manually!
{txt}
{com}. ssc install iscogen, replace
{txt}checking {hilite:iscogen} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. ssc install blindschemes, replace
{txt}checking {hilite:blindschemes} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. 
. 
. 
. *** TYPOLOGY ***
. ****************
. 
. clear all
{res}{txt}
{com}. cls
{txt}
{com}. 
. 
. global erg "..\Results\Final"
{txt}
{com}. 
. ************************************************
. *** ADD ADDITIONAL MACRO DATA ******************
. ************************************************
. 
. *****
. ***Federal State Election Results
. *****
. 
. *data obtained from christian endt.
. *cross-checked and with information of federal returning officer (Bundeswahlleiterin). Few entries corrected.
. 
. import excel using MacroData\LTWs.xlsx, firstrow clear 
{res}{text}(9 vars, 247 obs)

{com}. gen year = year(Wahltag)
{txt}
{com}. 
. sort Land year
{txt}
{com}. egen BuLa = group(Land)
{txt}
{com}. 
. bysort BuLa year: gen obs = _n
{txt}
{com}. bysort BuLa year: gen Obs = _N
{txt}
{com}. 
. tab obs

        {txt}obs {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res}        246       99.60       99.60
{txt}          2 {c |}{res}          1        0.40      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        247      100.00
{txt}
{com}. br if obs == 2 //
{txt}
{com}. *2 elections in hamburg 1982. new election after 6 months due to failed government formation -> use 2nd election, drop first.
. 
. drop if Obs == 2 & obs == 1
{txt}(1 observation deleted)

{com}. drop obs Obs
{txt}
{com}. xtset BuLa year
{res}
{col 1}{txt:Panel variable: }{res:BuLa}{txt: (unbalanced)}
{p 1 16 2}{txt:Time variable: }{res:year}{txt:, }{res:{bind:1946}}{txt: to }{res:{bind:2023}}{txt:, but with gaps}{p_end}
{txt}{col 10}Delta: {res}1 unit
{txt}
{com}. 
. tsfill 
{txt}
{com}. br
{txt}
{com}. foreach var of varlist Wahltag Wahlbeteiligung CDUCSU SPD FDP Gruene Linke AfD {c -(}
{txt}  2{com}.         bysort BuLa: replace `var' = `var'[_n-1] if `var' == . & `var'[_n-1] != .
{txt}  3{com}. {c )-}
{txt}(735 real changes made)
(735 real changes made)
(735 real changes made)
(735 real changes made)
(737 real changes made)
(472 real changes made)
(334 real changes made)
(73 real changes made)

{com}. rename CDUCSU CDUCSCUvote
{res}{txt}
{com}. rename SPD SPDvote
{res}{txt}
{com}. rename FDP FDPvote
{res}{txt}
{com}. rename Gruene Gruenevote
{res}{txt}
{com}. rename Linke Linkevote
{res}{txt}
{com}. rename AfD AfDvote
{res}{txt}
{com}. 
. 
. replace Land = Land[_n-1] if Land == "" & Land[_n-1] != ""
{txt}(735 real changes made)

{com}. 
. rename Land bula
{res}{txt}
{com}. br
{txt}
{com}. fre year
{res}
{txt}year
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   1946  {c |}{res}          4       0.41       0.41       0.41
{txt}        1947  {c |}{res}          9       0.92       0.92       1.33
{txt}        1948  {c |}{res}          9       0.92       0.92       2.24
{txt}        1949  {c |}{res}          9       0.92       0.92       3.16
{txt}        1950  {c |}{res}          9       0.92       0.92       4.08
{txt}        1951  {c |}{res}          9       0.92       0.92       4.99
{txt}        1952  {c |}{res}         10       1.02       1.02       6.01
{txt}        1953  {c |}{res}         10       1.02       1.02       7.03
{txt}        1954  {c |}{res}         10       1.02       1.02       8.05
{txt}        1955  {c |}{res}         11       1.12       1.12       9.17
{txt}        1956  {c |}{res}         11       1.12       1.12      10.30
{txt}        1957  {c |}{res}         11       1.12       1.12      11.42
{txt}        1958  {c |}{res}         11       1.12       1.12      12.54
{txt}        1959  {c |}{res}         11       1.12       1.12      13.66
{txt}        1960  {c |}{res}         11       1.12       1.12      14.78
{txt}        1961  {c |}{res}         11       1.12       1.12      15.90
{txt}        1962  {c |}{res}         11       1.12       1.12      17.02
{txt}        1963  {c |}{res}         11       1.12       1.12      18.14
{txt}        1964  {c |}{res}         11       1.12       1.12      19.27
{txt}        1965  {c |}{res}         11       1.12       1.12      20.39
{txt}        :     {c |}          :          :          :          :
{txt}        2004  {c |}{res}         16       1.63       1.63      71.76
{txt}        2005  {c |}{res}         16       1.63       1.63      73.39
{txt}        2006  {c |}{res}         16       1.63       1.63      75.03
{txt}        2007  {c |}{res}         16       1.63       1.63      76.66
{txt}        2008  {c |}{res}         16       1.63       1.63      78.29
{txt}        2009  {c |}{res}         16       1.63       1.63      79.92
{txt}        2010  {c |}{res}         16       1.63       1.63      81.55
{txt}        2011  {c |}{res}         16       1.63       1.63      83.18
{txt}        2012  {c |}{res}         16       1.63       1.63      84.81
{txt}        2013  {c |}{res}         16       1.63       1.63      86.44
{txt}        2014  {c |}{res}         16       1.63       1.63      88.07
{txt}        2015  {c |}{res}         16       1.63       1.63      89.70
{txt}        2016  {c |}{res}         16       1.63       1.63      91.34
{txt}        2017  {c |}{res}         16       1.63       1.63      92.97
{txt}        2018  {c |}{res}         16       1.63       1.63      94.60
{txt}        2019  {c |}{res}         16       1.63       1.63      96.23
{txt}        2020  {c |}{res}         13       1.33       1.33      97.55
{txt}        2021  {c |}{res}         12       1.22       1.22      98.78
{txt}        2022  {c |}{res}          8       0.82       0.82      99.59
{txt}        2023  {c |}{res}          4       0.41       0.41     100.00
{txt}        Total {c |}{res}        981     100.00     100.00           
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. drop if year > 2009 | year < 1949
{txt}(219 observations deleted)

{com}. 
. replace bula = "Thueringen" if bula == "Thüringen"
{txt}(20 real changes made)

{com}. replace bula = "Baden-Wuerttemberg" if bula == "Baden-Württemberg"
{txt}(58 real changes made)

{com}. replace bula= ustrupper(bula)
{txt}(762 real changes made)

{com}. save ltw.dta, replace
{txt}{p 0 4 2}
file {bf}
ltw.dta{rm}
saved
{p_end}

{com}. 
. *****
. ***Unemployment Rate and Absolute Numbers
. *****
. 
. import excel using MacroData\Alo5090abs.xlsx, firstrow clear
{res}{text}(12 vars, 41 obs)

{com}. 
. xpose, clear varname
{txt}
{com}. rename _varname bula
{res}{txt}
{com}. 
. forvalues i = 1/41 {c -(}
{txt}  2{com}.         local numb = `i' + 1949
{txt}  3{com}.         rename v`i'  alo`numb'
{txt}  4{com}. {c )-}
{res}{txt}
{com}. 
. drop if _n == 1
{txt}(1 observation deleted)

{com}. 
. reshape long alo, i(bula) j(year)
{txt}(j = 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}          11   {txt}->   {res}451         
{txt}Number of variables        {res}          42   {txt}->   {res}3           
{txt}j variable (41 values)                    ->   {res}year
{txt}xij variables:
            {res}alo1950 alo1951 ... alo1990   {txt}->   {res}alo
{txt}{hline 77}

{com}. 
. save alo5090abs.dta, replace
{txt}{p 0 4 2}
(file {bf}
alo5090abs.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
alo5090abs.dta{rm}
saved
{p_end}

{com}. 
. import excel using MacroData\Alo9122abs.xlsx, firstrow clear
{res}{text}(17 vars, 32 obs)

{com}. 
. xpose, clear varname
{txt}
{com}. rename _varname bula
{res}{txt}
{com}. 
. forvalues i = 1/32 {c -(}
{txt}  2{com}.         local numb = `i' + 1990
{txt}  3{com}.         rename v`i'  alo`numb'
{txt}  4{com}. {c )-}
{res}{txt}
{com}. 
. drop if _n == 1
{txt}(1 observation deleted)

{com}. 
. reshape long alo, i(bula) j(year)
{txt}(j = 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}          16   {txt}->   {res}512         
{txt}Number of variables        {res}          33   {txt}->   {res}3           
{txt}j variable (32 values)                    ->   {res}year
{txt}xij variables:
            {res}alo1991 alo1992 ... alo2022   {txt}->   {res}alo
{txt}{hline 77}

{com}. 
. save alo9122abs.dta, replace
{txt}{p 0 4 2}
(file {bf}
alo9122abs.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
alo9122abs.dta{rm}
saved
{p_end}

{com}. 
. import excel using MacroData\Alo5090rate.xlsx, firstrow clear
{res}{text}(12 vars, 41 obs)

{com}. 
. xpose, clear varname
{txt}
{com}. rename _varname bula
{res}{txt}
{com}. 
. forvalues i = 1/41 {c -(}
{txt}  2{com}.         local numb = `i' + 1949
{txt}  3{com}.         rename v`i'  alorate`numb'
{txt}  4{com}. {c )-}
{res}{txt}
{com}. 
. drop if _n == 1
{txt}(1 observation deleted)

{com}. 
. reshape long alorate, i(bula) j(year)
{txt}(j = 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}          11   {txt}->   {res}451         
{txt}Number of variables        {res}          42   {txt}->   {res}3           
{txt}j variable (41 values)                    ->   {res}year
{txt}xij variables:
{res}alorate1950 alorate1951 ... alorate1990   {txt}->   {res}alorate
{txt}{hline 77}

{com}. save alo5090rate.dta, replace
{txt}{p 0 4 2}
(file {bf}
alo5090rate.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
alo5090rate.dta{rm}
saved
{p_end}

{com}. 
. 
. import excel using MacroData\Alo9122rate.xlsx, firstrow clear
{res}{text}(17 vars, 32 obs)

{com}. 
. xpose, clear varname
{txt}
{com}. rename _varname bula
{res}{txt}
{com}. 
. forvalues i = 1/32 {c -(}
{txt}  2{com}.         local numb = `i' + 1990
{txt}  3{com}.         rename v`i'  alorate`numb'
{txt}  4{com}. {c )-}
{res}{txt}
{com}. 
. drop if _n == 1
{txt}(1 observation deleted)

{com}. 
. reshape long alorate, i(bula) j(year)
{txt}(j = 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}          16   {txt}->   {res}512         
{txt}Number of variables        {res}          33   {txt}->   {res}3           
{txt}j variable (32 values)                    ->   {res}year
{txt}xij variables:
{res}alorate1991 alorate1992 ... alorate2022   {txt}->   {res}alorate
{txt}{hline 77}

{com}. save alo9122rate.dta, replace
{txt}{p 0 4 2}
(file {bf}
alo9122rate.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
alo9122rate.dta{rm}
saved
{p_end}

{com}. 
. *alo merge:
. use alo5090abs.dta, clear
{txt}
{com}. merge 1:1 bula year using alo5090rate.dta 
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}             451{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop _merge
{txt}
{com}. save alo5090.dta, replace
{txt}{p 0 4 2}
(file {bf}
alo5090.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
alo5090.dta{rm}
saved
{p_end}

{com}. 
. use alo9122abs.dta, clear
{txt}
{com}. merge 1:1 bula year using alo9122rate.dta 
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}             512{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop _merge
{txt}
{com}. save alo9122.dta, replace
{txt}{p 0 4 2}
(file {bf}
alo9122.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
alo9122.dta{rm}
saved
{p_end}

{com}. 
. use alo5090.dta, clear 
{txt}
{com}. append using alo9122.dta
{txt}{p 0 7 2}
(variable
{bf:bula} was {bf:str18}, now {bf:str21} to accommodate using data's values)
{p_end}

{com}. sort bula year
{txt}
{com}. 
. replace bula = "Berlin" if bula == "BerlinWest"
{txt}(41 real changes made)

{com}. replace bula = "Baden-Wuerttemberg" if bula == "BadenWürttemberg"
{txt}(73 real changes made)

{com}. replace bula = "Nordrhein-Westfalen" if bula == "NordrheinWestfalen"
{txt}(73 real changes made)

{com}. replace bula = "Rheinland-Pfalz" if bula == "RheinlandPfalz"
{txt}(73 real changes made)

{com}. replace bula = "Schleswig-Holstein" if bula == "SchleswigHolstein"
{txt}(73 real changes made)

{com}. replace bula = "Sachsen-Anhalt" if bula == "SachsenAnhalt"
{txt}(32 real changes made)

{com}. replace bula = "Mecklenburg-Vorpommern" if bula == "MecklenburgVorpommern"
{txt}variable {bf}{res}bula{sf}{txt} was {bf}{res}str21{sf}{txt} now {bf}{res}str22{sf}
{txt}(32 real changes made)

{com}. replace bula = "Thueringen" if bula == "Thüringen"
{txt}(32 real changes made)

{com}. 
. replace bula= ustrupper(bula)
{txt}(963 real changes made)

{com}. 
. fre year
{res}
{txt}year
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   1950  {c |}{res}         11       1.14       1.14       1.14
{txt}        1951  {c |}{res}         11       1.14       1.14       2.28
{txt}        1952  {c |}{res}         11       1.14       1.14       3.43
{txt}        1953  {c |}{res}         11       1.14       1.14       4.57
{txt}        1954  {c |}{res}         11       1.14       1.14       5.71
{txt}        1955  {c |}{res}         11       1.14       1.14       6.85
{txt}        1956  {c |}{res}         11       1.14       1.14       8.00
{txt}        1957  {c |}{res}         11       1.14       1.14       9.14
{txt}        1958  {c |}{res}         11       1.14       1.14      10.28
{txt}        1959  {c |}{res}         11       1.14       1.14      11.42
{txt}        1960  {c |}{res}         11       1.14       1.14      12.56
{txt}        1961  {c |}{res}         11       1.14       1.14      13.71
{txt}        1962  {c |}{res}         11       1.14       1.14      14.85
{txt}        1963  {c |}{res}         11       1.14       1.14      15.99
{txt}        1964  {c |}{res}         11       1.14       1.14      17.13
{txt}        1965  {c |}{res}         11       1.14       1.14      18.28
{txt}        1966  {c |}{res}         11       1.14       1.14      19.42
{txt}        1967  {c |}{res}         11       1.14       1.14      20.56
{txt}        1968  {c |}{res}         11       1.14       1.14      21.70
{txt}        1969  {c |}{res}         11       1.14       1.14      22.85
{txt}        :     {c |}          :          :          :          :
{txt}        2003  {c |}{res}         16       1.66       1.66      68.43
{txt}        2004  {c |}{res}         16       1.66       1.66      70.09
{txt}        2005  {c |}{res}         16       1.66       1.66      71.75
{txt}        2006  {c |}{res}         16       1.66       1.66      73.42
{txt}        2007  {c |}{res}         16       1.66       1.66      75.08
{txt}        2008  {c |}{res}         16       1.66       1.66      76.74
{txt}        2009  {c |}{res}         16       1.66       1.66      78.40
{txt}        2010  {c |}{res}         16       1.66       1.66      80.06
{txt}        2011  {c |}{res}         16       1.66       1.66      81.72
{txt}        2012  {c |}{res}         16       1.66       1.66      83.39
{txt}        2013  {c |}{res}         16       1.66       1.66      85.05
{txt}        2014  {c |}{res}         16       1.66       1.66      86.71
{txt}        2015  {c |}{res}         16       1.66       1.66      88.37
{txt}        2016  {c |}{res}         16       1.66       1.66      90.03
{txt}        2017  {c |}{res}         16       1.66       1.66      91.69
{txt}        2018  {c |}{res}         16       1.66       1.66      93.35
{txt}        2019  {c |}{res}         16       1.66       1.66      95.02
{txt}        2020  {c |}{res}         16       1.66       1.66      96.68
{txt}        2021  {c |}{res}         16       1.66       1.66      98.34
{txt}        2022  {c |}{res}         16       1.66       1.66     100.00
{txt}        Total {c |}{res}        963     100.00     100.00           
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. 
. drop if year > 2009 | year < 1949
{txt}(208 observations deleted)

{com}. 
. save alo.dta, replace
{txt}{p 0 4 2}
file {bf}
alo.dta{rm}
saved
{p_end}

{com}. 
. erase alo9122.dta 
{txt}
{com}. erase alo5090.dta 
{txt}
{com}. erase alo5090abs.dta 
{txt}
{com}. erase alo9122abs.dta 
{txt}
{com}. erase alo9122rate.dta 
{txt}
{com}. erase alo5090rate.dta
{txt}
{com}. 
. *****
. ***Helbig/Nikolai Data on Cabinet Composition
. *****
. 
. import excel using MacroData\cabinets.xlsx, firstrow clear
{res}{text}(7 vars, 897 obs)

{com}. rename Bundesland bula
{res}{txt}
{com}. rename Jahr year
{res}{txt}
{com}. 
. replace bula = "Thueringen" if bula == "Thüringen"
{txt}(26 real changes made)

{com}. replace bula = "Baden-Wuerttemberg" if bula == "Baden-Württemberg"
{txt}(64 real changes made)

{com}. replace bula= ustrupper(bula)
{txt}(897 real changes made)

{com}. 
. fre year
{res}
{txt}year {hline 2} Jahr
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   1945  {c |}{res}          8       0.89       0.89       0.89
{txt}        1946  {c |}{res}          8       0.89       0.89       1.78
{txt}        1947  {c |}{res}          8       0.89       0.89       2.68
{txt}        1948  {c |}{res}          8       0.89       0.89       3.57
{txt}        1949  {c |}{res}          9       1.00       1.00       4.57
{txt}        1950  {c |}{res}         10       1.11       1.11       5.69
{txt}        1951  {c |}{res}         10       1.11       1.11       6.80
{txt}        1952  {c |}{res}         11       1.23       1.23       8.03
{txt}        1953  {c |}{res}         11       1.23       1.23       9.25
{txt}        1954  {c |}{res}         11       1.23       1.23      10.48
{txt}        1955  {c |}{res}         11       1.23       1.23      11.71
{txt}        1956  {c |}{res}         11       1.23       1.23      12.93
{txt}        1957  {c |}{res}         11       1.23       1.23      14.16
{txt}        1958  {c |}{res}         11       1.23       1.23      15.38
{txt}        1959  {c |}{res}         11       1.23       1.23      16.61
{txt}        1960  {c |}{res}         11       1.23       1.23      17.84
{txt}        1961  {c |}{res}         11       1.23       1.23      19.06
{txt}        1962  {c |}{res}         11       1.23       1.23      20.29
{txt}        1963  {c |}{res}         11       1.23       1.23      21.52
{txt}        1964  {c |}{res}         11       1.23       1.23      22.74
{txt}        :     {c |}          :          :          :          :
{txt}        1997  {c |}{res}         16       1.78       1.78      67.67
{txt}        1998  {c |}{res}         16       1.78       1.78      69.45
{txt}        1999  {c |}{res}         16       1.78       1.78      71.24
{txt}        2000  {c |}{res}         16       1.78       1.78      73.02
{txt}        2001  {c |}{res}         16       1.78       1.78      74.80
{txt}        2002  {c |}{res}         16       1.78       1.78      76.59
{txt}        2003  {c |}{res}         16       1.78       1.78      78.37
{txt}        2004  {c |}{res}         16       1.78       1.78      80.16
{txt}        2005  {c |}{res}         16       1.78       1.78      81.94
{txt}        2006  {c |}{res}         16       1.78       1.78      83.72
{txt}        2007  {c |}{res}         16       1.78       1.78      85.51
{txt}        2008  {c |}{res}         16       1.78       1.78      87.29
{txt}        2009  {c |}{res}         16       1.78       1.78      89.07
{txt}        2010  {c |}{res}         16       1.78       1.78      90.86
{txt}        2011  {c |}{res}         16       1.78       1.78      92.64
{txt}        2012  {c |}{res}         16       1.78       1.78      94.43
{txt}        2013  {c |}{res}         16       1.78       1.78      96.21
{txt}        2014  {c |}{res}         16       1.78       1.78      97.99
{txt}        2015  {c |}{res}         16       1.78       1.78      99.78
{txt}        2016  {c |}{res}          2       0.22       0.22     100.00
{txt}        Total {c |}{res}        897     100.00     100.00           
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. 
. drop if year > 2009 | year < 1949
{txt}(130 observations deleted)

{com}. 
. rename CDU CDUcabinet
{res}{txt}
{com}. rename SPD SPDcabinet
{res}{txt}
{com}. rename FDP FDPcabinet
{res}{txt}
{com}. rename GRÜN GRÜNcabinet
{res}{txt}
{com}. rename LINKE LINKEcabinet
{res}{txt}
{com}. 
. 
. 
. save cabinets.dta, replace
{txt}{p 0 4 2}
file {bf}
cabinets.dta{rm}
saved
{p_end}

{com}. 
. 
. 
. ************************************************
. *** Educational Policies ******************
. ************************************************
. *Data coded based on Helbig & Nikolai: "Die Unvergleichbaren"
. use EduTypology.dta, clear
{txt}
{com}. 
. save Typology_Mar23.dta, replace
{txt}{p 0 4 2}
(file {bf}
Typology_Mar23.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
Typology_Mar23.dta{rm}
saved
{p_end}

{com}. 
. *****
. ***combine with other macro data
. *****
. 
. fre bula
{res}
{txt}bula {hline 2} Bundesland
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   BADEN-WUERTTEMBERG   {c |}{res}         61       6.25       6.25       6.25
{txt}        BAYERN               {c |}{res}         61       6.25       6.25      12.50
{txt}        BRANDENBURG          {c |}{res}         61       6.25       6.25      18.75
{txt}        BREMEN               {c |}{res}         61       6.25       6.25      25.00
{txt}        EHEM. BERLIN-WEST    {c |}{res}         61       6.25       6.25      31.25
{txt}        HAMBURG              {c |}{res}         61       6.25       6.25      37.50
{txt}        HESSEN               {c |}{res}         61       6.25       6.25      43.75
{txt}        MECKL.BG.-VORPOMMERN {c |}{res}         61       6.25       6.25      50.00
{txt}        NIEDERSACHSEN        {c |}{res}         61       6.25       6.25      56.25
{txt}        NORDRHEIN-WESTFALEN  {c |}{res}         61       6.25       6.25      62.50
{txt}        RHEINLAND-PFALZ      {c |}{res}         61       6.25       6.25      68.75
{txt}        SAARLAND             {c |}{res}         61       6.25       6.25      75.00
{txt}        SACHSEN              {c |}{res}         61       6.25       6.25      81.25
{txt}        SACHSEN-ANHALT       {c |}{res}         61       6.25       6.25      87.50
{txt}        SCHLESWIG-HOLSTEIN   {c |}{res}         61       6.25       6.25      93.75
{txt}        THUERINGEN           {c |}{res}         61       6.25       6.25     100.00
{txt}        Total                {c |}{res}        976     100.00     100.00           
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. 
. replace bula = "BERLIN" if bula == "EHEM. BERLIN-WEST"
{txt}(61 real changes made)

{com}. replace bula = "MECKLENBURG-VORPOMMERN" if bula == "MECKL.BG.-VORPOMMERN"
{txt}variable {bf}{res}bula{sf}{txt} was {bf}{res}str20{sf}{txt} now {bf}{res}str22{sf}
{txt}(61 real changes made)

{com}. 
. rename year_school year
{res}{txt}
{com}. 
. merge 1:1 bula year using alo.dta
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}             221
{txt}{col 9}from master{col 30}{res}             221{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}Matched{col 30}{res}             755{txt}  (_merge==3)
{col 5}{hline 41}

{com}. fre bula if _merge == 1
{res}
{txt}bula {hline 2} Bundesland
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   BADEN-WUERTTEMBERG     {c |}{res}          1       0.45       0.45       0.45
{txt}        BAYERN                 {c |}{res}          1       0.45       0.45       0.90
{txt}        BERLIN                 {c |}{res}          1       0.45       0.45       1.36
{txt}        BRANDENBURG            {c |}{res}         42      19.00      19.00      20.36
{txt}        BREMEN                 {c |}{res}          1       0.45       0.45      20.81
{txt}        HAMBURG                {c |}{res}          1       0.45       0.45      21.27
{txt}        HESSEN                 {c |}{res}          1       0.45       0.45      21.72
{txt}        MECKLENBURG-VORPOMMERN {c |}{res}         42      19.00      19.00      40.72
{txt}        NIEDERSACHSEN          {c |}{res}          1       0.45       0.45      41.18
{txt}        NORDRHEIN-WESTFALEN    {c |}{res}          1       0.45       0.45      41.63
{txt}        RHEINLAND-PFALZ        {c |}{res}          1       0.45       0.45      42.08
{txt}        SAARLAND               {c |}{res}          1       0.45       0.45      42.53
{txt}        SACHSEN                {c |}{res}         42      19.00      19.00      61.54
{txt}        SACHSEN-ANHALT         {c |}{res}         42      19.00      19.00      80.54
{txt}        SCHLESWIG-HOLSTEIN     {c |}{res}          1       0.45       0.45      81.00
{txt}        THUERINGEN             {c |}{res}         42      19.00      19.00     100.00
{txt}        Total                  {c |}{res}        221     100.00     100.00           
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. drop _merge
{txt}
{com}. merge 1:1 bula year using ltw.dta
{res}{txt}{p 0 7 2}
(variable
{bf:year} was {bf:int}, now {bf:float} to accommodate using data's values)
{p_end}

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}             214
{txt}{col 9}from master{col 30}{res}             214{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}Matched{col 30}{res}             762{txt}  (_merge==3)
{col 5}{hline 41}

{com}. br
{txt}
{com}. fre bula if _merge == 1
{res}
{txt}bula {hline 2} Bundesland
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   BADEN-WUERTTEMBERG     {c |}{res}          3       1.40       1.40       1.40
{txt}        BRANDENBURG            {c |}{res}         41      19.16      19.16      20.56
{txt}        MECKLENBURG-VORPOMMERN {c |}{res}         41      19.16      19.16      39.72
{txt}        SAARLAND               {c |}{res}          6       2.80       2.80      42.52
{txt}        SACHSEN                {c |}{res}         41      19.16      19.16      61.68
{txt}        SACHSEN-ANHALT         {c |}{res}         41      19.16      19.16      80.84
{txt}        THUERINGEN             {c |}{res}         41      19.16      19.16     100.00
{txt}        Total                  {c |}{res}        214     100.00     100.00           
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. drop _merge
{txt}
{com}. merge 1:1 bula year using cabinets.dta
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}             209
{txt}{col 9}from master{col 30}{res}             209{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}Matched{col 30}{res}             767{txt}  (_merge==3)
{col 5}{hline 41}

{com}. 
. drop _merge
{txt}
{com}. 
. *variables for analysis:
. fre alo // absolute number of unemployed
{res}
{txt}alo
{txt}{hline 16}{hline 1}{c TT}{hline 44}
{txt}        {txt}         {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 16}{hline 1}{c +}{hline 44}
{txt}Valid   2178     {c |}{res}          1       0.10       0.14       0.14
{txt}        2488     {c |}{res}          1       0.10       0.14       0.27
{txt}        2750     {c |}{res}          1       0.10       0.14       0.41
{txt}        3104     {c |}{res}          1       0.10       0.14       0.55
{txt}        3121     {c |}{res}          1       0.10       0.14       0.68
{txt}        3228     {c |}{res}          1       0.10       0.14       0.82
{txt}        3370     {c |}{res}          1       0.10       0.14       0.96
{txt}        3433     {c |}{res}          1       0.10       0.14       1.09
{txt}        3550     {c |}{res}          1       0.10       0.14       1.23
{txt}        3608     {c |}{res}          1       0.10       0.14       1.37
{txt}        3621     {c |}{res}          1       0.10       0.14       1.50
{txt}        3845     {c |}{res}          1       0.10       0.14       1.64
{txt}        4061     {c |}{res}          1       0.10       0.14       1.78
{txt}        4140     {c |}{res}          1       0.10       0.14       1.92
{txt}        4199     {c |}{res}          1       0.10       0.14       2.05
{txt}        4314     {c |}{res}          1       0.10       0.14       2.19
{txt}        4368     {c |}{res}          1       0.10       0.14       2.33
{txt}        4490     {c |}{res}          1       0.10       0.14       2.46
{txt}        4532     {c |}{res}          1       0.10       0.14       2.60
{txt}        4622     {c |}{res}          1       0.10       0.14       2.74
{txt}        :        {c |}          :          :          :          :
{txt}        725345   {c |}{res}          1       0.10       0.14      97.40
{txt}        733107   {c |}{res}          1       0.10       0.14      97.54
{txt}        737043   {c |}{res}          1       0.10       0.14      97.67
{txt}        752446   {c |}{res}          1       0.10       0.14      97.81
{txt}        757237.6 {c |}{res}          1       0.10       0.14      97.95
{txt}        766351   {c |}{res}          1       0.10       0.14      98.08
{txt}        777746   {c |}{res}          1       0.10       0.14      98.22
{txt}        778946   {c |}{res}          1       0.10       0.14      98.36
{txt}        784510   {c |}{res}          1       0.10       0.14      98.50
{txt}        800404   {c |}{res}          1       0.10       0.14      98.63
{txt}        812464   {c |}{res}          1       0.10       0.14      98.77
{txt}        826959   {c |}{res}          1       0.10       0.14      98.91
{txt}        830878   {c |}{res}          1       0.10       0.14      99.04
{txt}        851821.9 {c |}{res}          1       0.10       0.14      99.18
{txt}        856061   {c |}{res}          1       0.10       0.14      99.32
{txt}        879964   {c |}{res}          1       0.10       0.14      99.45
{txt}        884479   {c |}{res}          1       0.10       0.14      99.59
{txt}        898807   {c |}{res}          1       0.10       0.14      99.73
{txt}        1012773  {c |}{res}          1       0.10       0.14      99.86
{txt}        1057649  {c |}{res}          1       0.10       0.14     100.00
{txt}        Total    {c |}{res}        731      74.90     100.00           
{txt}Missing .        {c |}{res}        245      25.10                      
{txt}Total            {c |}{res}        976     100.00                      
{txt}{hline 16}{hline 1}{c BT}{hline 44}

{com}. fre alorate // unemployment rate
{res}
{txt}alorate
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   .1    {c |}{res}          1       0.10       0.17       0.17
{txt}        .2    {c |}{res}          7       0.72       1.16       1.33
{txt}        .3    {c |}{res}          1       0.10       0.17       1.50
{txt}        .4    {c |}{res}          6       0.61       1.00       2.49
{txt}        .5    {c |}{res}          9       0.92       1.50       3.99
{txt}        .6    {c |}{res}          9       0.92       1.50       5.48
{txt}        .7    {c |}{res}          4       0.41       0.66       6.15
{txt}        .8    {c |}{res}          7       0.72       1.16       7.31
{txt}        .9    {c |}{res}          7       0.72       1.16       8.47
{txt}        1     {c |}{res}          4       0.41       0.66       9.14
{txt}        1.1   {c |}{res}         11       1.13       1.83      10.96
{txt}        1.2   {c |}{res}          6       0.61       1.00      11.96
{txt}        1.3   {c |}{res}          7       0.72       1.16      13.12
{txt}        1.4   {c |}{res}          5       0.51       0.83      13.95
{txt}        1.5   {c |}{res}          1       0.10       0.17      14.12
{txt}        1.6   {c |}{res}          6       0.61       1.00      15.12
{txt}        1.7   {c |}{res}          8       0.82       1.33      16.45
{txt}        1.9   {c |}{res}          1       0.10       0.17      16.61
{txt}        2     {c |}{res}          4       0.41       0.66      17.28
{txt}        2.1   {c |}{res}          3       0.31       0.50      17.77
{txt}        :     {c |}          :          :          :          :
{txt}        18.9  {c |}{res}          2       0.20       0.33      94.35
{txt}        19    {c |}{res}          2       0.20       0.33      94.68
{txt}        19.1  {c |}{res}          2       0.20       0.33      95.02
{txt}        19.3  {c |}{res}          1       0.10       0.17      95.18
{txt}        19.4  {c |}{res}          3       0.31       0.50      95.68
{txt}        19.6  {c |}{res}          1       0.10       0.17      95.85
{txt}        19.9  {c |}{res}          3       0.31       0.50      96.35
{txt}        20    {c |}{res}          2       0.20       0.33      96.68
{txt}        20.1  {c |}{res}          1       0.10       0.17      96.84
{txt}        20.2  {c |}{res}          1       0.10       0.17      97.01
{txt}        20.3  {c |}{res}          2       0.20       0.33      97.34
{txt}        20.4  {c |}{res}          1       0.10       0.17      97.51
{txt}        20.5  {c |}{res}          1       0.10       0.17      97.67
{txt}        20.8  {c |}{res}          1       0.10       0.17      97.84
{txt}        20.9  {c |}{res}          2       0.20       0.33      98.17
{txt}        21.4  {c |}{res}          1       0.10       0.17      98.34
{txt}        21.5  {c |}{res}          1       0.10       0.17      98.50
{txt}        21.7  {c |}{res}          6       0.61       1.00      99.50
{txt}        21.8  {c |}{res}          1       0.10       0.17      99.67
{txt}        22.1  {c |}{res}          2       0.20       0.33     100.00
{txt}        Total {c |}{res}        602      61.68     100.00           
{txt}Missing .     {c |}{res}        374      38.32                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. 
. fre SPDvote // spd election result
{res}
{txt}SPDvote {hline 2} SPD
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   9.8   {c |}{res}          5       0.51       0.66       0.66
{txt}        10.4  {c |}{res}          1       0.10       0.13       0.79
{txt}        10.7  {c |}{res}          5       0.51       0.66       1.44
{txt}        14.3  {c |}{res}          5       0.51       0.66       2.10
{txt}        14.5  {c |}{res}          5       0.51       0.66       2.76
{txt}        16.6  {c |}{res}          5       0.51       0.66       3.41
{txt}        18.5  {c |}{res}          6       0.61       0.79       4.20
{txt}        18.6  {c |}{res}          2       0.20       0.26       4.46
{txt}        19.1  {c |}{res}          4       0.41       0.52       4.99
{txt}        19.6  {c |}{res}          5       0.51       0.66       5.64
{txt}        20    {c |}{res}          4       0.41       0.52       6.17
{txt}        21.4  {c |}{res}          4       0.41       0.52       6.69
{txt}        22.4  {c |}{res}          2       0.20       0.26       6.96
{txt}        22.8  {c |}{res}          4       0.41       0.52       7.48
{txt}        23.2  {c |}{res}          1       0.10       0.13       7.61
{txt}        23.6  {c |}{res}          4       0.41       0.52       8.14
{txt}        23.7  {c |}{res}          1       0.10       0.13       8.27
{txt}        24.5  {c |}{res}          1       0.10       0.13       8.40
{txt}        25.1  {c |}{res}          5       0.51       0.66       9.06
{txt}        25.2  {c |}{res}          4       0.41       0.52       9.58
{txt}        :     {c |}          :          :          :          :
{txt}        50.4  {c |}{res}          4       0.41       0.52      89.37
{txt}        50.5  {c |}{res}          4       0.41       0.52      89.90
{txt}        50.8  {c |}{res}          4       0.41       0.52      90.42
{txt}        51    {c |}{res}          4       0.41       0.52      90.94
{txt}        51.3  {c |}{res}          4       0.41       0.52      91.47
{txt}        51.5  {c |}{res}          4       0.41       0.52      91.99
{txt}        52.1  {c |}{res}          5       0.51       0.66      92.65
{txt}        52.6  {c |}{res}          5       0.51       0.66      93.31
{txt}        53.9  {c |}{res}          4       0.41       0.52      93.83
{txt}        54.1  {c |}{res}          5       0.51       0.66      94.49
{txt}        54.4  {c |}{res}          4       0.41       0.52      95.01
{txt}        54.7  {c |}{res}          4       0.41       0.52      95.54
{txt}        54.8  {c |}{res}          4       0.41       0.52      96.06
{txt}        54.9  {c |}{res}          4       0.41       0.52      96.59
{txt}        55.3  {c |}{res}          8       0.82       1.05      97.64
{txt}        56.9  {c |}{res}          4       0.41       0.52      98.16
{txt}        57.4  {c |}{res}          5       0.51       0.66      98.82
{txt}        59    {c |}{res}          4       0.41       0.52      99.34
{txt}        61.9  {c |}{res}          4       0.41       0.52      99.87
{txt}        64.5  {c |}{res}          1       0.10       0.13     100.00
{txt}        Total {c |}{res}        762      78.07     100.00           
{txt}Missing .     {c |}{res}        214      21.93                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. egen leftvote = rowtotal(SPDvote Gruenevote Linkevote), missing // left parties election result
{txt}(214 missing values generated)

{com}. 
. fre SPDcabinet // spd cabinet strength
{res}
{txt}SPDcabinet {hline 2} SPD
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0     {c |}{res}        306      31.35      39.90      39.90
{txt}        .5    {c |}{res}          1       0.10       0.13      40.03
{txt}        1.1   {c |}{res}          2       0.20       0.26      40.29
{txt}        1.83  {c |}{res}          1       0.10       0.13      40.42
{txt}        2.1   {c |}{res}          1       0.10       0.13      40.55
{txt}        2.3   {c |}{res}          1       0.10       0.13      40.68
{txt}        3.1   {c |}{res}          1       0.10       0.13      40.81
{txt}        3.5   {c |}{res}          1       0.10       0.13      40.94
{txt}        5.04  {c |}{res}          1       0.10       0.13      41.07
{txt}        5.1   {c |}{res}          1       0.10       0.13      41.20
{txt}        6.4   {c |}{res}          1       0.10       0.13      41.33
{txt}        7.9   {c |}{res}          1       0.10       0.13      41.46
{txt}        8.9   {c |}{res}          1       0.10       0.13      41.59
{txt}        9.4   {c |}{res}          1       0.10       0.13      41.72
{txt}        12    {c |}{res}          1       0.10       0.13      41.85
{txt}        12.5  {c |}{res}          1       0.10       0.13      41.98
{txt}        14.9  {c |}{res}          1       0.10       0.13      42.11
{txt}        15.4  {c |}{res}          1       0.10       0.13      42.24
{txt}        16.2  {c |}{res}          1       0.10       0.13      42.37
{txt}        16.6  {c |}{res}          1       0.10       0.13      42.50
{txt}        :     {c |}          :          :          :          :
{txt}        90.91 {c |}{res}          4       0.41       0.52      86.44
{txt}        91.7  {c |}{res}          4       0.41       0.52      86.96
{txt}        91.8  {c |}{res}          1       0.10       0.13      87.09
{txt}        91.99 {c |}{res}          1       0.10       0.13      87.22
{txt}        92.05 {c |}{res}          1       0.10       0.13      87.35
{txt}        92.1  {c |}{res}          1       0.10       0.13      87.48
{txt}        92.3  {c |}{res}          8       0.82       1.04      88.53
{txt}        92.86 {c |}{res}          1       0.10       0.13      88.66
{txt}        93    {c |}{res}          1       0.10       0.13      88.79
{txt}        94.9  {c |}{res}          1       0.10       0.13      88.92
{txt}        95.1  {c |}{res}          1       0.10       0.13      89.05
{txt}        96.5  {c |}{res}          1       0.10       0.13      89.18
{txt}        98    {c |}{res}          1       0.10       0.13      89.31
{txt}        98.18 {c |}{res}          1       0.10       0.13      89.44
{txt}        98.4  {c |}{res}          1       0.10       0.13      89.57
{txt}        98.8  {c |}{res}          1       0.10       0.13      89.70
{txt}        98.98 {c |}{res}          1       0.10       0.13      89.83
{txt}        99.4  {c |}{res}          1       0.10       0.13      89.96
{txt}        99.5  {c |}{res}          1       0.10       0.13      90.09
{txt}        100   {c |}{res}         76       7.79       9.91     100.00
{txt}        Total {c |}{res}        767      78.59     100.00           
{txt}Missing .     {c |}{res}        209      21.41                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. egen leftcabinet = rowtotal(SPDcabinet GRÜNcabinet LINKEcabinet), missing // left parties cabinet strength
{txt}(209 missing values generated)

{com}. 
. rename year year_school
{res}{txt}
{com}. fre bula
{res}
{txt}bula {hline 2} Bundesland
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   BADEN-WUERTTEMBERG     {c |}{res}         61       6.25       6.25       6.25
{txt}        BAYERN                 {c |}{res}         61       6.25       6.25      12.50
{txt}        BERLIN                 {c |}{res}         61       6.25       6.25      18.75
{txt}        BRANDENBURG            {c |}{res}         61       6.25       6.25      25.00
{txt}        BREMEN                 {c |}{res}         61       6.25       6.25      31.25
{txt}        HAMBURG                {c |}{res}         61       6.25       6.25      37.50
{txt}        HESSEN                 {c |}{res}         61       6.25       6.25      43.75
{txt}        MECKLENBURG-VORPOMMERN {c |}{res}         61       6.25       6.25      50.00
{txt}        NIEDERSACHSEN          {c |}{res}         61       6.25       6.25      56.25
{txt}        NORDRHEIN-WESTFALEN    {c |}{res}         61       6.25       6.25      62.50
{txt}        RHEINLAND-PFALZ        {c |}{res}         61       6.25       6.25      68.75
{txt}        SAARLAND               {c |}{res}         61       6.25       6.25      75.00
{txt}        SACHSEN                {c |}{res}         61       6.25       6.25      81.25
{txt}        SACHSEN-ANHALT         {c |}{res}         61       6.25       6.25      87.50
{txt}        SCHLESWIG-HOLSTEIN     {c |}{res}         61       6.25       6.25      93.75
{txt}        THUERINGEN             {c |}{res}         61       6.25       6.25     100.00
{txt}        Total                  {c |}{res}        976     100.00     100.00           
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. *****
. ***Recodings
. *****
. 
. fre year_school
{res}
{txt}year_school {hline 2} school year
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   1949  {c |}{res}         16       1.64       1.64       1.64
{txt}        1950  {c |}{res}         16       1.64       1.64       3.28
{txt}        1951  {c |}{res}         16       1.64       1.64       4.92
{txt}        1952  {c |}{res}         16       1.64       1.64       6.56
{txt}        1953  {c |}{res}         16       1.64       1.64       8.20
{txt}        1954  {c |}{res}         16       1.64       1.64       9.84
{txt}        1955  {c |}{res}         16       1.64       1.64      11.48
{txt}        1956  {c |}{res}         16       1.64       1.64      13.11
{txt}        1957  {c |}{res}         16       1.64       1.64      14.75
{txt}        1958  {c |}{res}         16       1.64       1.64      16.39
{txt}        1959  {c |}{res}         16       1.64       1.64      18.03
{txt}        1960  {c |}{res}         16       1.64       1.64      19.67
{txt}        1961  {c |}{res}         16       1.64       1.64      21.31
{txt}        1962  {c |}{res}         16       1.64       1.64      22.95
{txt}        1963  {c |}{res}         16       1.64       1.64      24.59
{txt}        1964  {c |}{res}         16       1.64       1.64      26.23
{txt}        1965  {c |}{res}         16       1.64       1.64      27.87
{txt}        1966  {c |}{res}         16       1.64       1.64      29.51
{txt}        1967  {c |}{res}         16       1.64       1.64      31.15
{txt}        1968  {c |}{res}         16       1.64       1.64      32.79
{txt}        :     {c |}          :          :          :          :
{txt}        1990  {c |}{res}         16       1.64       1.64      68.85
{txt}        1991  {c |}{res}         16       1.64       1.64      70.49
{txt}        1992  {c |}{res}         16       1.64       1.64      72.13
{txt}        1993  {c |}{res}         16       1.64       1.64      73.77
{txt}        1994  {c |}{res}         16       1.64       1.64      75.41
{txt}        1995  {c |}{res}         16       1.64       1.64      77.05
{txt}        1996  {c |}{res}         16       1.64       1.64      78.69
{txt}        1997  {c |}{res}         16       1.64       1.64      80.33
{txt}        1998  {c |}{res}         16       1.64       1.64      81.97
{txt}        1999  {c |}{res}         16       1.64       1.64      83.61
{txt}        2000  {c |}{res}         16       1.64       1.64      85.25
{txt}        2001  {c |}{res}         16       1.64       1.64      86.89
{txt}        2002  {c |}{res}         16       1.64       1.64      88.52
{txt}        2003  {c |}{res}         16       1.64       1.64      90.16
{txt}        2004  {c |}{res}         16       1.64       1.64      91.80
{txt}        2005  {c |}{res}         16       1.64       1.64      93.44
{txt}        2006  {c |}{res}         16       1.64       1.64      95.08
{txt}        2007  {c |}{res}         16       1.64       1.64      96.72
{txt}        2008  {c |}{res}         16       1.64       1.64      98.36
{txt}        2009  {c |}{res}         16       1.64       1.64     100.00
{txt}        Total {c |}{res}        976     100.00     100.00           
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. gen TimePeriod = autocode(year_school,5,1949,2009)
{txt}
{com}. tab year_school TimePeriod 

    {txt}school {c |}                 TimePeriod
      year {c |}      1961       1973       1985       1997 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1949 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1950 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1951 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1952 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1953 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1954 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1955 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1956 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1957 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1958 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1959 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1960 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1961 {c |}{res}        16          0          0          0 {txt}{c |}{res}        16 
{txt}      1962 {c |}{res}         0         16          0          0 {txt}{c |}{res}        16 
{txt}      1963 {c |}{res}         0         16          0          0 {txt}{c |}{res}        16 
{txt}      1964 {c |}{res}         0         16          0          0 {txt}{c |}{res}        16 
{txt}      1965 {c |}{res}         0         16          0          0 {txt}{c |}{res}        16 
{txt}      1966 {c |}{res}         0         16          0          0 {txt}{c |}{res}        16 
{txt}      1967 {c |}{res}         0         16          0          0 {txt}{c |}{res}        16 
{txt}      1968 {c |}{res}         0         16          0          0 {txt}{c |}{res}        16 
{txt}      1969 {c |}{res}         0         16          0          0 {txt}{c |}{res}        16 
{txt}      1970 {c |}{res}         0         16          0          0 {txt}{c |}{res}        16 
{txt}      1971 {c |}{res}         0         16          0          0 {txt}{c |}{res}        16 
{txt}      1972 {c |}{res}         0         16          0          0 {txt}{c |}{res}        16 
{txt}      1973 {c |}{res}         0         16          0          0 {txt}{c |}{res}        16 
{txt}      1974 {c |}{res}         0          0         16          0 {txt}{c |}{res}        16 
{txt}      1975 {c |}{res}         0          0         16          0 {txt}{c |}{res}        16 
{txt}      1976 {c |}{res}         0          0         16          0 {txt}{c |}{res}        16 
{txt}      1977 {c |}{res}         0          0         16          0 {txt}{c |}{res}        16 
{txt}      1978 {c |}{res}         0          0         16          0 {txt}{c |}{res}        16 
{txt}      1979 {c |}{res}         0          0         16          0 {txt}{c |}{res}        16 
{txt}      1980 {c |}{res}         0          0         16          0 {txt}{c |}{res}        16 
{txt}      1981 {c |}{res}         0          0         16          0 {txt}{c |}{res}        16 
{txt}      1982 {c |}{res}         0          0         16          0 {txt}{c |}{res}        16 
{txt}      1983 {c |}{res}         0          0         16          0 {txt}{c |}{res}        16 
{txt}      1984 {c |}{res}         0          0         16          0 {txt}{c |}{res}        16 
{txt}      1985 {c |}{res}         0          0         16          0 {txt}{c |}{res}        16 
{txt}      1986 {c |}{res}         0          0          0         16 {txt}{c |}{res}        16 
{txt}      1987 {c |}{res}         0          0          0         16 {txt}{c |}{res}        16 
{txt}      1988 {c |}{res}         0          0          0         16 {txt}{c |}{res}        16 
{txt}      1989 {c |}{res}         0          0          0         16 {txt}{c |}{res}        16 
{txt}      1990 {c |}{res}         0          0          0         16 {txt}{c |}{res}        16 
{txt}      1991 {c |}{res}         0          0          0         16 {txt}{c |}{res}        16 
{txt}      1992 {c |}{res}         0          0          0         16 {txt}{c |}{res}        16 
{txt}      1993 {c |}{res}         0          0          0         16 {txt}{c |}{res}        16 
{txt}      1994 {c |}{res}         0          0          0         16 {txt}{c |}{res}        16 
{txt}      1995 {c |}{res}         0          0          0         16 {txt}{c |}{res}        16 
{txt}      1996 {c |}{res}         0          0          0         16 {txt}{c |}{res}        16 
{txt}      1997 {c |}{res}         0          0          0         16 {txt}{c |}{res}        16 
{txt}      1998 {c |}{res}         0          0          0          0 {txt}{c |}{res}        16 
{txt}      1999 {c |}{res}         0          0          0          0 {txt}{c |}{res}        16 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}        16 
{txt}      2001 {c |}{res}         0          0          0          0 {txt}{c |}{res}        16 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}        16 
{txt}      2003 {c |}{res}         0          0          0          0 {txt}{c |}{res}        16 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}        16 
{txt}      2005 {c |}{res}         0          0          0          0 {txt}{c |}{res}        16 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}        16 
{txt}      2007 {c |}{res}         0          0          0          0 {txt}{c |}{res}        16 
{txt}      2008 {c |}{res}         0          0          0          0 {txt}{c |}{res}        16 
{txt}      2009 {c |}{res}         0          0          0          0 {txt}{c |}{res}        16 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       208        192        192        192 {txt}{c |}{res}       976 


    {txt}school {c |} TimePeriod
      year {c |}      2009 {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
      1949 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1950 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1951 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1952 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1953 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1954 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1955 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1956 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1957 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1958 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1959 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1960 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1961 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1962 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1963 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1964 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1965 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1966 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1967 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1968 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1969 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1970 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1971 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1972 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1973 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1974 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1975 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1976 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1977 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1978 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1979 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1980 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1981 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1982 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1983 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1984 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1985 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1986 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1987 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1988 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1989 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1990 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1991 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1992 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1993 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1994 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1995 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1996 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1997 {c |}{res}         0 {txt}{c |}{res}        16 
{txt}      1998 {c |}{res}        16 {txt}{c |}{res}        16 
{txt}      1999 {c |}{res}        16 {txt}{c |}{res}        16 
{txt}      2000 {c |}{res}        16 {txt}{c |}{res}        16 
{txt}      2001 {c |}{res}        16 {txt}{c |}{res}        16 
{txt}      2002 {c |}{res}        16 {txt}{c |}{res}        16 
{txt}      2003 {c |}{res}        16 {txt}{c |}{res}        16 
{txt}      2004 {c |}{res}        16 {txt}{c |}{res}        16 
{txt}      2005 {c |}{res}        16 {txt}{c |}{res}        16 
{txt}      2006 {c |}{res}        16 {txt}{c |}{res}        16 
{txt}      2007 {c |}{res}        16 {txt}{c |}{res}        16 
{txt}      2008 {c |}{res}        16 {txt}{c |}{res}        16 
{txt}      2009 {c |}{res}        16 {txt}{c |}{res}        16 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}       192 {txt}{c |}{res}       976 
{txt}
{com}. egen TimePeriod2 = group(TimePeriod)
{txt}
{com}. fre TimePeriod2
{res}
{txt}TimePeriod2 {hline 2} group(TimePeriod)
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   1     {c |}{res}        208      21.31      21.31      21.31
{txt}        2     {c |}{res}        192      19.67      19.67      40.98
{txt}        3     {c |}{res}        192      19.67      19.67      60.66
{txt}        4     {c |}{res}        192      19.67      19.67      80.33
{txt}        5     {c |}{res}        192      19.67      19.67     100.00
{txt}        Total {c |}{res}        976     100.00     100.00           
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. drop TimePeriod
{txt}
{com}. rename TimePeriod2 TimePeriod
{res}{txt}
{com}. fre TimePeriod
{res}
{txt}TimePeriod {hline 2} group(TimePeriod)
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   1     {c |}{res}        208      21.31      21.31      21.31
{txt}        2     {c |}{res}        192      19.67      19.67      40.98
{txt}        3     {c |}{res}        192      19.67      19.67      60.66
{txt}        4     {c |}{res}        192      19.67      19.67      80.33
{txt}        5     {c |}{res}        192      19.67      19.67     100.00
{txt}        Total {c |}{res}        976     100.00     100.00           
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. 
. *1. Changing scales of existing variables to 0-1
. *1.1 Share of students getting Abi in Gymnasium 
. label variable anteil_gym "Gymnasium as share of all schools leading to Abitur"
{txt}
{com}. fre anteil_gym
{res}
{txt}anteil_gym {hline 2} Gymnasium as share of all schools leading to Abitur
{txt}{hline 20}{hline 1}{c TT}{hline 44}
{txt}        {txt}             {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 20}{hline 1}{c +}{hline 44}
{txt}Valid   0 =>95%      {c |}{res}        332      34.02      44.15      44.15
{txt}        1 80 to <94% {c |}{res}        223      22.85      29.65      73.80
{txt}        2 60 to <80% {c |}{res}        165      16.91      21.94      95.74
{txt}        3 <60%       {c |}{res}         32       3.28       4.26     100.00
{txt}        Total        {c |}{res}        752      77.05     100.00           
{txt}Missing .            {c |}{res}        224      22.95                      
{txt}Total                {c |}{res}        976     100.00                      
{txt}{hline 20}{hline 1}{c BT}{hline 44}

{com}. recode anteil_gym (0=0) (1=0.33) (2=0.66) (3=1) // 0: >=95%; 0.33: 80-95%; ///
{txt}(420 changes made to {bf:anteil_gym})

{com}. *0.66: 60-80%; 1: <60%
. fre anteil_gym
{res}
{txt}anteil_gym {hline 2} Gymnasium as share of all schools leading to Abitur
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0         =>95%      {c |}{res}        332      34.02      44.15      44.15
{txt}        .33000001            {c |}{res}        223      22.85      29.65      73.80
{txt}        .66000003            {c |}{res}        165      16.91      21.94      95.74
{txt}        1         80 to <94% {c |}{res}         32       3.28       4.26     100.00
{txt}        Total                {c |}{res}        752      77.05     100.00           
{txt}Missing .                    {c |}{res}        224      22.95                      
{txt}Total                        {c |}{res}        976     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. label define manteil_gym 0 ">=95%" 1 "<60%" // problem labeling decimal values
{txt}
{com}. label value anteil_gym manteil_gym
{txt}
{com}. fre anteil_gym
{res}
{txt}anteil_gym {hline 2} Gymnasium as share of all schools leading to Abitur
{txt}{hline 23}{hline 1}{c TT}{hline 44}
{txt}        {txt}                {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 23}{hline 1}{c +}{hline 44}
{txt}Valid   0         >=95% {c |}{res}        332      34.02      44.15      44.15
{txt}        .33000001       {c |}{res}        223      22.85      29.65      73.80
{txt}        .66000003       {c |}{res}        165      16.91      21.94      95.74
{txt}        1         <60%  {c |}{res}         32       3.28       4.26     100.00
{txt}        Total           {c |}{res}        752      77.05     100.00           
{txt}Missing .               {c |}{res}        224      22.95                      
{txt}Total                   {c |}{res}        976     100.00                      
{txt}{hline 23}{hline 1}{c BT}{hline 44}

{com}. rename anteil_gym share_gym
{res}{txt}
{com}. tab bula share_gym ,m

                      {txt}{c |}    Gymnasium as share of all
                      {c |}    schools leading to Abitur
           Bundesland {c |}     >=95%        .33        .66 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}        22         36          0 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}        59          2          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}        17          5         34 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0          0          2 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}        17         38          6 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}        18         12         18 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}        15          8         38 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0         16          3 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}        24         37          0 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}        27         12         22 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}        38         22          1 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}        21          8         24 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}        19          0          0 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}        14          5          0 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}        34         10         17 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}         7         12          0 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       332        223        165 {txt}{c |}{res}       976 


                      {txt}{c |} Gymnasium as share of
                      {c |}  all schools leading
                      {c |}       to Abitur
           Bundesland {c |}      <60%          . {c |}     Total
{hline 22}{c +}{hline 22}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          3 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}         0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         2          3 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}        17         42 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}         0          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}        13          0 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}         0          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0         42 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}         0          0 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}         0          0 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}         0          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         0          8 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}         0         42 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}         0         42 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}         0         42 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 22}{c +}{hline 10}
                Total {c |}{res}        32        224 {txt}{c |}{res}       976 
{txt}
{com}. tab year share_gym if bula == "SAARLAND",m // 1949-1956 missing

           {txt}{c |}  Gymnasium as share of all schools leading
    school {c |}                  to Abitur
      year {c |}     >=95%        .33        .66          . {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1949 {c |}{res}         0          0          0          1 {txt}{c |}{res}         1 
{txt}      1950 {c |}{res}         0          0          0          1 {txt}{c |}{res}         1 
{txt}      1951 {c |}{res}         0          0          0          1 {txt}{c |}{res}         1 
{txt}      1952 {c |}{res}         0          0          0          1 {txt}{c |}{res}         1 
{txt}      1953 {c |}{res}         0          0          0          1 {txt}{c |}{res}         1 
{txt}      1954 {c |}{res}         0          0          0          1 {txt}{c |}{res}         1 
{txt}      1955 {c |}{res}         0          0          0          1 {txt}{c |}{res}         1 
{txt}      1956 {c |}{res}         0          0          0          1 {txt}{c |}{res}         1 
{txt}      1957 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1958 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1959 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1960 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1961 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1962 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1963 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1964 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1965 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1966 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1967 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1968 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1969 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1970 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1971 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1972 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1973 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1974 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1975 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1976 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1977 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1978 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1979 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1980 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1981 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1982 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1983 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1984 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1985 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1986 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1987 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1988 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1989 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1990 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1991 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1992 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1993 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1994 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1995 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1996 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1997 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1998 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1999 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2000 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2001 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2002 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2003 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2004 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2005 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2006 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2007 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2008 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2009 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}        21          8         24          8 {txt}{c |}{res}        61 
{txt}
{com}. tab year share_gym if bula == "BADEN-WUERTTEMBERG",m // 1949-1951 missing

           {txt}{c |}    Gymnasium as share of all
    school {c |}    schools leading to Abitur
      year {c |}     >=95%        .33          . {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
      1949 {c |}{res}         0          0          1 {txt}{c |}{res}         1 
{txt}      1950 {c |}{res}         0          0          1 {txt}{c |}{res}         1 
{txt}      1951 {c |}{res}         0          0          1 {txt}{c |}{res}         1 
{txt}      1952 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1953 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1954 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1955 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1956 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1957 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1958 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1959 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1960 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1961 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1962 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1963 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1964 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1965 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1966 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1967 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1968 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1969 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1970 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1971 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1972 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1973 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1974 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1975 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1976 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1977 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1978 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1979 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1980 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1981 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1982 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1983 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1984 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1985 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1986 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1987 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1988 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1989 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1990 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1991 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1992 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1993 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1994 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1995 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1996 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1997 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1998 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1999 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2000 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2001 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2002 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2003 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2004 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2005 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2006 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2007 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2008 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2009 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}        22         36          3 {txt}{c |}{res}        61 
{txt}
{com}. tab year share_gym if bula == "BERLIN",m // 1949-1951 missing

           {txt}{c |}  Gymnasium as share of all schools leading
    school {c |}                  to Abitur
      year {c |}     >=95%        .33        .66       <60% {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1949 {c |}{res}         0          0          0          0 {txt}{c |}{res}         1 
{txt}      1950 {c |}{res}         0          0          0          0 {txt}{c |}{res}         1 
{txt}      1951 {c |}{res}         0          0          0          0 {txt}{c |}{res}         1 
{txt}      1952 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1953 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1954 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1955 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1956 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1957 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1958 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1959 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1960 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1961 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1962 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1963 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1964 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1965 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1966 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1967 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1968 {c |}{res}         1          0          0          0 {txt}{c |}{res}         1 
{txt}      1969 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1970 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1971 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1972 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1973 {c |}{res}         0          1          0          0 {txt}{c |}{res}         1 
{txt}      1974 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1975 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1976 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1977 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1978 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1979 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1980 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1981 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1982 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1983 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1984 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1985 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1986 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1987 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1988 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1989 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1990 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1991 {c |}{res}         0          0          0          1 {txt}{c |}{res}         1 
{txt}      1992 {c |}{res}         0          0          0          1 {txt}{c |}{res}         1 
{txt}      1993 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1994 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1995 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1996 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1997 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1998 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      1999 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2000 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2001 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2002 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2003 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2004 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2005 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2006 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2007 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2008 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}      2009 {c |}{res}         0          0          1          0 {txt}{c |}{res}         1 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}        17          5         34          2 {txt}{c |}{res}        61 


           {txt}{c |} Gymnasium
           {c |}  as share
           {c |}   of all
           {c |}  schools
           {c |} leading to
    school {c |}   Abitur
      year {c |}         . {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
      1949 {c |}{res}         1 {txt}{c |}{res}         1 
{txt}      1950 {c |}{res}         1 {txt}{c |}{res}         1 
{txt}      1951 {c |}{res}         1 {txt}{c |}{res}         1 
{txt}      1952 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1953 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1954 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1955 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1956 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1957 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1958 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1959 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1960 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1961 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1962 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1963 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1964 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1965 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1966 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1967 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1968 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1969 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1970 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1971 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1972 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1973 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1974 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1975 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1976 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1977 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1978 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1979 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1980 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1981 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1982 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1983 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1984 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1985 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1986 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1987 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1988 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1989 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1990 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1991 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1992 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1993 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1994 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1995 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1996 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1997 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1998 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      1999 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      2000 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      2001 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      2002 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      2003 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      2004 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      2005 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      2006 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      2007 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      2008 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}      2009 {c |}{res}         0 {txt}{c |}{res}         1 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}         3 {txt}{c |}{res}        61 
{txt}
{com}. 
. 
. *1.2 Duration of primary education
. fre duration_grund
{res}
{txt}duration_grund {hline 2} duration of primary education
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0 4 years            {c |}{res}        419      42.93      55.79      55.79
{txt}        1 4 years + 2 years  {c |}{res}        169      17.32      22.50      78.30
{txt}          Förderstufe        {c |}{res}                                            
{txt}        2 4 years + 2 years  {c |}{res}         72       7.38       9.59      87.88
{txt}          Orientierungsstufe {c |}{res}                                            
{txt}        3 6 years            {c |}{res}         91       9.32      12.12     100.00
{txt}        Total                {c |}{res}        751      76.95     100.00           
{txt}Missing .                    {c |}{res}        225      23.05                      
{txt}Total                        {c |}{res}        976     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. gen duration_prim = duration_grund
{txt}(225 missing values generated)

{com}. recode duration_prim  (0=0) (1=0.5) (2=1) (3=1) // 0=4 Jahre; 0.5=Förder; ///
{txt}(332 changes made to {bf:duration_prim})

{com}. *1=6 Jahre
. fre duration_prim 
{res}
{txt}duration_prim
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0     {c |}{res}        419      42.93      55.79      55.79
{txt}        .5    {c |}{res}        169      17.32      22.50      78.30
{txt}        1     {c |}{res}        163      16.70      21.70     100.00
{txt}        Total {c |}{res}        751      76.95     100.00           
{txt}Missing .     {c |}{res}        225      23.05                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. label define mduration_grund 0 "4 years" 1 "6 years"
{txt}
{com}. label value duration_prim mduration_grund
{txt}
{com}. label var duration_prim "Duration Primary Schooling"
{txt}
{com}. fre duration_prim 
{res}
{txt}duration_prim {hline 2} Duration Primary Schooling
{txt}{hline 18}{hline 1}{c TT}{hline 44}
{txt}        {txt}           {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 18}{hline 1}{c +}{hline 44}
{txt}Valid   0  4 years {c |}{res}        419      42.93      55.79      55.79
{txt}        .5         {c |}{res}        169      17.32      22.50      78.30
{txt}        1  6 years {c |}{res}        163      16.70      21.70     100.00
{txt}        Total      {c |}{res}        751      76.95     100.00           
{txt}Missing .          {c |}{res}        225      23.05                      
{txt}Total              {c |}{res}        976     100.00                      
{txt}{hline 18}{hline 1}{c BT}{hline 44}

{com}. tab bula duration_prim, missing

                      {txt}{c |}    Duration Primary Schooling
           Bundesland {c |}   4 years         .5    6 years {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}        58          0          0 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         0          0         58 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0          0         19 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}        26          0         35 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}        12         44          5 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}        59          0          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0         15          4 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}        16         11         34 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}        50         11          0 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}        18         43          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}        12         42          0 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}        19          0          0 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}        13          0          6 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}        56          3          2 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}        19          0          0 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       419        169        163 {txt}{c |}{res}       976 


                      {txt}{c |}  Duration
                      {c |}  Primary
                      {c |} Schooling
           Bundesland {c |}         . {c |}     Total
{hline 22}{c +}{hline 11}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         3 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}         0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         3 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}        42 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}         0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         0 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}         2 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}        42 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}         0 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}         0 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}         0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         7 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}        42 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}        42 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}        42 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 11}{c +}{hline 10}
                Total {c |}{res}       225 {txt}{c |}{res}       976 
{txt}
{com}. tab year duration_prim if bula == "SAARLAND",m // 1949-1955 (!) missing

    {txt}school {c |}    Duration Primary Schooling
      year {c |}   4 years         .5          . {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
      1949 {c |}{res}         0          0          1 {txt}{c |}{res}         1 
{txt}      1950 {c |}{res}         0          0          1 {txt}{c |}{res}         1 
{txt}      1951 {c |}{res}         0          0          1 {txt}{c |}{res}         1 
{txt}      1952 {c |}{res}         0          0          1 {txt}{c |}{res}         1 
{txt}      1953 {c |}{res}         0          0          1 {txt}{c |}{res}         1 
{txt}      1954 {c |}{res}         0          0          1 {txt}{c |}{res}         1 
{txt}      1955 {c |}{res}         0          0          1 {txt}{c |}{res}         1 
{txt}      1956 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1957 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1958 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1959 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1960 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1961 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1962 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1963 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1964 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1965 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1966 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1967 {c |}{res}         1          0          0 {txt}{c |}{res}         1 
{txt}      1968 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1969 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1970 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1971 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1972 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1973 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1974 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1975 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1976 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1977 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1978 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1979 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1980 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1981 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1982 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1983 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1984 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1985 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1986 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1987 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1988 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1989 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1990 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1991 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1992 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1993 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1994 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1995 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1996 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1997 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1998 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      1999 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2000 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2001 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2002 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2003 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2004 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2005 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2006 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2007 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2008 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}      2009 {c |}{res}         0          1          0 {txt}{c |}{res}         1 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}        12         42          7 {txt}{c |}{res}        61 
{txt}
{com}. tab year duration_prim if bula == "BADEN-WUERTTEMBERG",m // 1949-1951 missing

           {txt}{c |}   Duration Primary
    school {c |}       Schooling
      year {c |}   4 years          . {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      1949 {c |}{res}         0          1 {txt}{c |}{res}         1 
{txt}      1950 {c |}{res}         0          1 {txt}{c |}{res}         1 
{txt}      1951 {c |}{res}         0          1 {txt}{c |}{res}         1 
{txt}      1952 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1953 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1954 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1955 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1956 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1957 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1958 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1959 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1960 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1961 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1962 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1963 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1964 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1965 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1966 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1967 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1968 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1969 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1970 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1971 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1972 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1973 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1974 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1975 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1976 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1977 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1978 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1979 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1980 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1981 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1982 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1983 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1984 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1985 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1986 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1987 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1988 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1989 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1990 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1991 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1992 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1993 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1994 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1995 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1996 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1997 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1998 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1999 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2000 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2001 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2002 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2003 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2004 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2005 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2006 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2007 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2008 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2009 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}        58          3 {txt}{c |}{res}        61 
{txt}
{com}. tab year duration_prim if bula == "BERLIN",m // 1949-1951 missing

           {txt}{c |}   Duration Primary
    school {c |}       Schooling
      year {c |}   6 years          . {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      1949 {c |}{res}         0          1 {txt}{c |}{res}         1 
{txt}      1950 {c |}{res}         0          1 {txt}{c |}{res}         1 
{txt}      1951 {c |}{res}         0          1 {txt}{c |}{res}         1 
{txt}      1952 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1953 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1954 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1955 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1956 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1957 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1958 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1959 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1960 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1961 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1962 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1963 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1964 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1965 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1966 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1967 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1968 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1969 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1970 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1971 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1972 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1973 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1974 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1975 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1976 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1977 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1978 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1979 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1980 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1981 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1982 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1983 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1984 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1985 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1986 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1987 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1988 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1989 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1990 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1991 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1992 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1993 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1994 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1995 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1996 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1997 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1998 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      1999 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2000 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2001 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2002 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2003 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2004 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2005 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2006 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2007 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2008 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}      2009 {c |}{res}         1          0 {txt}{c |}{res}         1 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}        58          3 {txt}{c |}{res}        61 
{txt}
{com}. 
. *1.3 Comprehensive school form
. fre gesamtsch // already in required scale
{res}
{txt}gesamtsch {hline 2} comprehensive school form
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0 no  {c |}{res}        188      19.26      35.14      35.14
{txt}        1 yes {c |}{res}        347      35.55      64.86     100.00
{txt}        Total {c |}{res}        535      54.82     100.00           
{txt}Missing .     {c |}{res}        441      45.18                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. rename gesamtsch compr_school
{res}{txt}
{com}. tab bula compr_school, missing

                      {txt}{c |}    comprehensive school form
           Bundesland {c |}        no        yes          . {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}        40          0         21 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}        40          0         21 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         2         38         21 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0         19         42 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}        11         29         21 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         9         31         21 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}        11         29         21 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0         19         42 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}         4         36         21 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}         4         36         21 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}        14         26         21 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}        14         26         21 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}        19          0         42 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}         6         13         42 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}        12         28         21 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}         2         17         42 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       188        347        441 {txt}{c |}{res}       976 
{txt}
{com}. replace compr_school=0 if bula=="BADEN-WUERTTEMBERG" & inrange(year_school,1949,1969) | ///
> bula=="BAYERN" & inrange(year_school,1949,1969) | /// 
> bula=="BERLIN" & inrange(year_school,1949,1969) | /// 
> bula=="BREMEN" & inrange(year_school,1949,1969) | /// 
> bula=="HAMBURG" & inrange(year_school,1949,1969) | /// 
> bula=="HESSEN" & inrange(year_school,1949,1969) | /// 
> bula=="NIEDERSACHSEN" & inrange(year_school,1949,1969) | /// 
> bula=="NORDRHEIN-WESTFALEN" & inrange(year_school,1949,1969) | ///  
> bula=="RHEINLAND-PFALZ" & inrange(year_school,1949,1969) | /// 
> bula=="SCHLESWIG-HOLSTEIN" & inrange(year_school,1949,1969) | ///  
> bula=="SAARLAND" & inrange(year_school,1949,1969) 
{txt}(231 real changes made)

{com}. tab bula compr_school, missing

                      {txt}{c |}    comprehensive school form
           Bundesland {c |}        no        yes          . {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}        23         38          0 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0         19         42 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}        32         29          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}        30         31          0 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}        32         29          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0         19         42 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}        25         36          0 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}        25         36          0 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}        35         26          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}        35         26          0 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}        19          0         42 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}         6         13         42 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}        33         28          0 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}         2         17         42 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       419        347        210 {txt}{c |}{res}       976 
{txt}
{com}. *NO Missings except for former GDR because of manual coding range 1949-1969 as zero
. 
. * dummy for former GDR
. gen GDR=1 if bula=="BRANDENBURG" & year_school<1991 | bula=="MECKLENBURG-VORPOMMERN" & year_school<1991 | bula=="SACHSEN" & year_school<1991 | bula=="SACHSEN-ANHALT" & year_school<1991 | bula=="THUERINGEN" & year_school<1991 
{txt}(766 missing values generated)

{com}. replace GDR=0 if bula=="BADEN-WUERTTEMBERG" | bula=="BAYERN" | bula=="BREMEN" | bula=="HAMBURG" | bula=="HESSEN" | bula=="NIEDERSACHSEN" | bula=="NORDRHEIN-WESTFALEN" | bula=="RHEINLAND-PFALZ" | bula=="SAARLAND" | bula=="SCHLESWIG-HOLSTEIN" | bula=="EHEM. BERLIN-WEST"
{txt}(610 real changes made)

{com}. replace GDR=0 if bula=="BRANDENBURG" & year_school>1990 | bula=="MECKLENBURG-VORPOMMERN" & year_school>1990 | bula=="SACHSEN" & year_school>1990 | bula=="SACHSEN-ANHALT" & year_school>1990 | bula=="THUERINGEN" & year_school>1990 
{txt}(95 real changes made)

{com}. tab bula GDR, missing

                      {txt}{c |}               GDR
           Bundesland {c |}         0          1          . {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         0          0         61 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}        19         42          0 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}        19         42          0 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}        19         42          0 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}        19         42          0 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}        19         42          0 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       705        210         61 {txt}{c |}{res}       976 
{txt}
{com}. 
. ***
. * INDEX OF STRATIFICATION (main Independent Variable federal states - level)
. ***
. egen destrat_index = rowmean(duration_prim compr_school share_gym)
{txt}(210 missing values generated)

{com}. replace destrat_index = . if (duration_prim == . & compr_school == .)| (duration_prim == . & share_gym == .) | (share_gym == . & compr_school == .)
{txt}(13 real changes made, 13 to missing)

{com}. label variable destrat_index "De-Stratification Index"
{txt}
{com}. sum destrat_index , detail

                   {txt}De-Stratification Index
{hline 61}
      Percentiles      Smallest
 1%    {res}        0              0
{txt} 5%    {res}        0              0
{txt}10%    {res}        0              0       {txt}Obs         {res}        753
{txt}25%    {res}        0              0       {txt}Sum of wgt. {res}        753

{txt}50%    {res} .3333333                      {txt}Mean          {res} .3588535
                        {txt}Largest       Std. dev.     {res} .3312622
{txt}75%    {res} .6666667              1
{txt}90%    {res} .7766666              1       {txt}Variance      {res} .1097346
{txt}95%    {res} .8866667              1       {txt}Skewness      {res} .2960901
{txt}99%    {res}        1              1       {txt}Kurtosis      {res} 1.598787
{txt}
{com}. fre destrat_index
{res}
{txt}destrat_index {hline 2} De-Stratification Index
{txt}{hline 16}{hline 1}{c TT}{hline 44}
{txt}        {txt}         {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 16}{hline 1}{c +}{hline 44}
{txt}Valid   0        {c |}{res}        247      25.31      32.80      32.80
{txt}        .11      {c |}{res}         57       5.84       7.57      40.37
{txt}        .1666667 {c |}{res}         34       3.48       4.52      44.89
{txt}        .22      {c |}{res}          9       0.92       1.20      46.08
{txt}        .2766667 {c |}{res}         18       1.84       2.39      48.47
{txt}        .3333333 {c |}{res}         43       4.41       5.71      54.18
{txt}        .4433333 {c |}{res}         47       4.82       6.24      60.42
{txt}        .5       {c |}{res}          3       0.31       0.40      60.82
{txt}        .5533333 {c |}{res}         57       5.84       7.57      68.39
{txt}        .61      {c |}{res}         44       4.51       5.84      74.24
{txt}        .6666667 {c |}{res}          6       0.61       0.80      75.03
{txt}        .72      {c |}{res}         57       5.84       7.57      82.60
{txt}        .7766666 {c |}{res}         57       5.84       7.57      90.17
{txt}        .83      {c |}{res}          2       0.20       0.27      90.44
{txt}        .8333333 {c |}{res}         13       1.33       1.73      92.16
{txt}        .8866667 {c |}{res}         40       4.10       5.31      97.48
{txt}        1        {c |}{res}         19       1.95       2.52     100.00
{txt}        Total    {c |}{res}        753      77.15     100.00           
{txt}Missing .        {c |}{res}        223      22.85                      
{txt}Total            {c |}{res}        976     100.00                      
{txt}{hline 16}{hline 1}{c BT}{hline 44}

{com}. *range 0-1; mean .35; median .33
. tab bula destrat_index, missing

                      {txt}{c |}     De-Stratification Index
           Bundesland {c |}         0        .11   .1666667 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}        22         36          0 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}        59          2          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}        10         11          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}        12          0          1 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}        15          8          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}        16          0          6 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}        25          0          0 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}        18          0         17 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}        12          0         10 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}        19          0          0 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}         6          0          0 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}        31          0          0 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}         2          0          0 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       247         57         34 {txt}{c |}{res}       976 


                      {txt}{c |}     De-Stratification Index
           Bundesland {c |}       .22   .2766667   .3333333 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         0          0         17 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}         0          0          7 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         0         12          5 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}         9          0          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}         0          0          2 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}         0          0          2 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         0          6          0 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}         0          0          2 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0          3 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}         0          0          5 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}         9         18         43 {txt}{c |}{res}       976 


                      {txt}{c |}     De-Stratification Index
           Bundesland {c |}  .4433333         .5   .5533333 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         3          0          0 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}         4          0          5 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}         0          0         27 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}         1          0          0 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}        12          0         11 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}         0          3          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}         5          0          0 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}        10          0         14 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}        12          0          0 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}        47          3         57 {txt}{c |}{res}       976 


                      {txt}{c |}     De-Stratification Index
           Bundesland {c |}       .61   .6666667        .72 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         0          0         18 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}        15          0          0 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}         5          0          0 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}         0          0         11 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}        22          0          1 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         2          0         24 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}         0          6          0 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0          3 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}        44          6         57 {txt}{c |}{res}       976 


                      {txt}{c |}     De-Stratification Index
           Bundesland {c |}  .7766666        .83   .8333333 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         2          0          0 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}        23          0          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         0          0         13 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}         0          2          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         1          0          0 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}        31          0          0 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}        57          2         13 {txt}{c |}{res}       976 


                      {txt}{c |}     De-Stratification Index
           Bundesland {c |}  .8866667          1          . {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          3 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}        34          2          3 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         2         17         42 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}         1          0          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         3          0         42 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         0          0          7 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}         0          0         42 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}         0          0         42 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}         0          0         42 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}        40         19        223 {txt}{c |}{res}       976 
{txt}
{com}. 
. replace destrat_index=. if GDR==1 
{txt}(0 real changes made)

{com}. 
. fre bula
{res}
{txt}bula {hline 2} Bundesland
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   BADEN-WUERTTEMBERG     {c |}{res}         61       6.25       6.25       6.25
{txt}        BAYERN                 {c |}{res}         61       6.25       6.25      12.50
{txt}        BERLIN                 {c |}{res}         61       6.25       6.25      18.75
{txt}        BRANDENBURG            {c |}{res}         61       6.25       6.25      25.00
{txt}        BREMEN                 {c |}{res}         61       6.25       6.25      31.25
{txt}        HAMBURG                {c |}{res}         61       6.25       6.25      37.50
{txt}        HESSEN                 {c |}{res}         61       6.25       6.25      43.75
{txt}        MECKLENBURG-VORPOMMERN {c |}{res}         61       6.25       6.25      50.00
{txt}        NIEDERSACHSEN          {c |}{res}         61       6.25       6.25      56.25
{txt}        NORDRHEIN-WESTFALEN    {c |}{res}         61       6.25       6.25      62.50
{txt}        RHEINLAND-PFALZ        {c |}{res}         61       6.25       6.25      68.75
{txt}        SAARLAND               {c |}{res}         61       6.25       6.25      75.00
{txt}        SACHSEN                {c |}{res}         61       6.25       6.25      81.25
{txt}        SACHSEN-ANHALT         {c |}{res}         61       6.25       6.25      87.50
{txt}        SCHLESWIG-HOLSTEIN     {c |}{res}         61       6.25       6.25      93.75
{txt}        THUERINGEN             {c |}{res}         61       6.25       6.25     100.00
{txt}        Total                  {c |}{res}        976     100.00     100.00           
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. tab destrat_index  if bula == "SACHSEN" & year_school < 1989,m // check

{txt}De-Stratifi {c |}
     cation {c |}
      Index {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          . {c |}{res}         40      100.00      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}         40      100.00
{txt}
{com}. tab destrat_index  if bula == "SACHSEN" & year_school > 1989,m // check

{txt}De-Stratifi {c |}
     cation {c |}
      Index {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}         19       95.00       95.00
{txt}          . {c |}{res}          1        5.00      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}         20      100.00
{txt}
{com}. *continuous measure of stratification without GDR
. 
. * 2 groups of Länder
. *gen destrat_2gr=0 if destrat_index<=.239
. *replace destrat_2gr=1 if destrat_index>.239
. xtile destrat_2gr = destrat_index, nq(2) // <= 0.33; > 0.33; 55% - 45%
{txt}
{com}. replace destrat_2gr = destrat_2gr - 1
{txt}(753 real changes made)

{com}. tab destrat_2gr

{txt}2 quantiles {c |}
         of {c |}
destrat_ind {c |}
         ex {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        408       54.18       54.18
{txt}          1 {c |}{res}        345       45.82      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        753      100.00
{txt}
{com}. tab destrat_index destrat_2gr 

{txt}De-Stratif {c |}    2 quantiles of
   ication {c |}     destrat_index
     Index {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       247          0 {txt}{c |}{res}       247 
{txt}       .11 {c |}{res}        57          0 {txt}{c |}{res}        57 
{txt}  .1666667 {c |}{res}        34          0 {txt}{c |}{res}        34 
{txt}       .22 {c |}{res}         9          0 {txt}{c |}{res}         9 
{txt}  .2766667 {c |}{res}        18          0 {txt}{c |}{res}        18 
{txt}  .3333333 {c |}{res}        43          0 {txt}{c |}{res}        43 
{txt}  .4433333 {c |}{res}         0         47 {txt}{c |}{res}        47 
{txt}        .5 {c |}{res}         0          3 {txt}{c |}{res}         3 
{txt}  .5533333 {c |}{res}         0         57 {txt}{c |}{res}        57 
{txt}       .61 {c |}{res}         0         44 {txt}{c |}{res}        44 
{txt}  .6666667 {c |}{res}         0          6 {txt}{c |}{res}         6 
{txt}       .72 {c |}{res}         0         57 {txt}{c |}{res}        57 
{txt}  .7766666 {c |}{res}         0         57 {txt}{c |}{res}        57 
{txt}       .83 {c |}{res}         0          2 {txt}{c |}{res}         2 
{txt}  .8333333 {c |}{res}         0         13 {txt}{c |}{res}        13 
{txt}  .8866667 {c |}{res}         0         40 {txt}{c |}{res}        40 
{txt}         1 {c |}{res}         0         19 {txt}{c |}{res}        19 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       408        345 {txt}{c |}{res}       753 
{txt}
{com}. 
. replace destrat_2gr=. if destrat_index==.
{txt}(0 real changes made)

{com}. label variable destrat_2gr "de-stratification, 2 groups"
{txt}
{com}. label define ldestrat 0 "(more) stratified" 1 "(more) de-stratified" 2 "former GDR"
{txt}
{com}. label values destrat_2gr ldestrat
{txt}
{com}. tab bula destrat_2gr, missing

                      {txt}{c |}   de-stratification, 2 groups
           Bundesland {c |} (more) st  (more) de          . {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}        58          0          3 {txt}{c |}{res}        61 
{txt}               BAYERN {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}        17         41          3 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0         19         42 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}        28         33          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}        30         31          0 {txt}{c |}{res}        61 
{txt}               HESSEN {c |}{res}        32         29          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0         19         42 {txt}{c |}{res}        61 
{txt}        NIEDERSACHSEN {c |}{res}        24         37          0 {txt}{c |}{res}        61 
{txt}  NORDRHEIN-WESTFALEN {c |}{res}        27         34          0 {txt}{c |}{res}        61 
{txt}      RHEINLAND-PFALZ {c |}{res}        35         26          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}        28         26          7 {txt}{c |}{res}        61 
{txt}              SACHSEN {c |}{res}        19          0         42 {txt}{c |}{res}        61 
{txt}       SACHSEN-ANHALT {c |}{res}         8         11         42 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}        34         27          0 {txt}{c |}{res}        61 
{txt}           THUERINGEN {c |}{res}         7         12         42 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       408        345        223 {txt}{c |}{res}       976 
{txt}
{com}. tab destrat_2gr

{txt}de-stratification, 2 {c |}
              groups {c |}      Freq.     Percent        Cum.
{hline 21}{c +}{hline 35}
   (more) stratified {c |}{res}        408       54.18       54.18
{txt}(more) de-stratified {c |}{res}        345       45.82      100.00
{txt}{hline 21}{c +}{hline 35}
               Total {c |}{res}        753      100.00
{txt}
{com}. 
. *build 5 cat index:
. xtile destrat_5gr = destrat_index, nq(5) 
{txt}
{com}. fre destrat_5gr
{res}
{txt}destrat_5gr {hline 2} 5 quantiles of destrat_index
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   1     {c |}{res}        247      25.31      32.80      32.80
{txt}        2     {c |}{res}         57       5.84       7.57      40.37
{txt}        3     {c |}{res}        151      15.47      20.05      60.42
{txt}        4     {c |}{res}        167      17.11      22.18      82.60
{txt}        5     {c |}{res}        131      13.42      17.40     100.00
{txt}        Total {c |}{res}        753      77.15     100.00           
{txt}Missing .     {c |}{res}        223      22.85                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. tab destrat_index destrat_5gr 

{txt}De-Stratif {c |}
   ication {c |}        5 quantiles of destrat_index
     Index {c |}         1          2          3          4 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
         0 {c |}{res}       247          0          0          0 {txt}{c |}{res}       247 
{txt}       .11 {c |}{res}         0         57          0          0 {txt}{c |}{res}        57 
{txt}  .1666667 {c |}{res}         0          0         34          0 {txt}{c |}{res}        34 
{txt}       .22 {c |}{res}         0          0          9          0 {txt}{c |}{res}         9 
{txt}  .2766667 {c |}{res}         0          0         18          0 {txt}{c |}{res}        18 
{txt}  .3333333 {c |}{res}         0          0         43          0 {txt}{c |}{res}        43 
{txt}  .4433333 {c |}{res}         0          0         47          0 {txt}{c |}{res}        47 
{txt}        .5 {c |}{res}         0          0          0          3 {txt}{c |}{res}         3 
{txt}  .5533333 {c |}{res}         0          0          0         57 {txt}{c |}{res}        57 
{txt}       .61 {c |}{res}         0          0          0         44 {txt}{c |}{res}        44 
{txt}  .6666667 {c |}{res}         0          0          0          6 {txt}{c |}{res}         6 
{txt}       .72 {c |}{res}         0          0          0         57 {txt}{c |}{res}        57 
{txt}  .7766666 {c |}{res}         0          0          0          0 {txt}{c |}{res}        57 
{txt}       .83 {c |}{res}         0          0          0          0 {txt}{c |}{res}         2 
{txt}  .8333333 {c |}{res}         0          0          0          0 {txt}{c |}{res}        13 
{txt}  .8866667 {c |}{res}         0          0          0          0 {txt}{c |}{res}        40 
{txt}         1 {c |}{res}         0          0          0          0 {txt}{c |}{res}        19 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       247         57        151        167 {txt}{c |}{res}       753 


           {txt}{c |}     5
           {c |} quantiles
           {c |}     of
De-Stratif {c |} destrat_in
   ication {c |}    dex
     Index {c |}         5 {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
         0 {c |}{res}         0 {txt}{c |}{res}       247 
{txt}       .11 {c |}{res}         0 {txt}{c |}{res}        57 
{txt}  .1666667 {c |}{res}         0 {txt}{c |}{res}        34 
{txt}       .22 {c |}{res}         0 {txt}{c |}{res}         9 
{txt}  .2766667 {c |}{res}         0 {txt}{c |}{res}        18 
{txt}  .3333333 {c |}{res}         0 {txt}{c |}{res}        43 
{txt}  .4433333 {c |}{res}         0 {txt}{c |}{res}        47 
{txt}        .5 {c |}{res}         0 {txt}{c |}{res}         3 
{txt}  .5533333 {c |}{res}         0 {txt}{c |}{res}        57 
{txt}       .61 {c |}{res}         0 {txt}{c |}{res}        44 
{txt}  .6666667 {c |}{res}         0 {txt}{c |}{res}         6 
{txt}       .72 {c |}{res}         0 {txt}{c |}{res}        57 
{txt}  .7766666 {c |}{res}        57 {txt}{c |}{res}        57 
{txt}       .83 {c |}{res}         2 {txt}{c |}{res}         2 
{txt}  .8333333 {c |}{res}        13 {txt}{c |}{res}        13 
{txt}  .8866667 {c |}{res}        40 {txt}{c |}{res}        40 
{txt}         1 {c |}{res}        19 {txt}{c |}{res}        19 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}       131 {txt}{c |}{res}       753 
{txt}
{com}. 
. * prepare variables for matching on year of entry into primary school, year of entry into secondary school, year of being age 14
. gen year_primschool=year_school
{txt}
{com}. gen year_secschool=year_school
{txt}
{com}. gen year_age14=year_school
{txt}
{com}. 
. *****
. ***
. *Descriptive Graphs (of Edu Sys Vars between states over time)
. ***
. *****
. 
. ***re-label federal states with english names
. fre bula
{res}
{txt}bula {hline 2} Bundesland
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   BADEN-WUERTTEMBERG     {c |}{res}         61       6.25       6.25       6.25
{txt}        BAYERN                 {c |}{res}         61       6.25       6.25      12.50
{txt}        BERLIN                 {c |}{res}         61       6.25       6.25      18.75
{txt}        BRANDENBURG            {c |}{res}         61       6.25       6.25      25.00
{txt}        BREMEN                 {c |}{res}         61       6.25       6.25      31.25
{txt}        HAMBURG                {c |}{res}         61       6.25       6.25      37.50
{txt}        HESSEN                 {c |}{res}         61       6.25       6.25      43.75
{txt}        MECKLENBURG-VORPOMMERN {c |}{res}         61       6.25       6.25      50.00
{txt}        NIEDERSACHSEN          {c |}{res}         61       6.25       6.25      56.25
{txt}        NORDRHEIN-WESTFALEN    {c |}{res}         61       6.25       6.25      62.50
{txt}        RHEINLAND-PFALZ        {c |}{res}         61       6.25       6.25      68.75
{txt}        SAARLAND               {c |}{res}         61       6.25       6.25      75.00
{txt}        SACHSEN                {c |}{res}         61       6.25       6.25      81.25
{txt}        SACHSEN-ANHALT         {c |}{res}         61       6.25       6.25      87.50
{txt}        SCHLESWIG-HOLSTEIN     {c |}{res}         61       6.25       6.25      93.75
{txt}        THUERINGEN             {c |}{res}         61       6.25       6.25     100.00
{txt}        Total                  {c |}{res}        976     100.00     100.00           
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. 
. replace bula = "BAVARIA" if bula == "BAYERN"
{txt}(61 real changes made)

{com}. replace bula = "HESSE" if bula == "HESSEN"
{txt}(61 real changes made)

{com}. replace bula = "LOWER SAXONY" if bula == "NIEDERSACHSEN"
{txt}(61 real changes made)

{com}. replace bula = "NORTH RHINE-WESTPHALIA" if bula == "NORDRHEIN-WESTFALEN"
{txt}(61 real changes made)

{com}. replace bula = "RHINELAND-PALATINATE" if bula == "RHEINLAND-PFALZ"
{txt}(61 real changes made)

{com}. replace bula = "SAXONY" if bula == "SACHSEN"
{txt}(61 real changes made)

{com}. replace bula = "SAXONY-ANHALT" if bula == "SACHSEN-ANHALT"
{txt}(61 real changes made)

{com}. replace bula = "THURINGA" if bula == "THUERINGEN"
{txt}(61 real changes made)

{com}. 
. fre bula
{res}
{txt}bula {hline 2} Bundesland
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   BADEN-WUERTTEMBERG     {c |}{res}         61       6.25       6.25       6.25
{txt}        BAVARIA                {c |}{res}         61       6.25       6.25      12.50
{txt}        BERLIN                 {c |}{res}         61       6.25       6.25      18.75
{txt}        BRANDENBURG            {c |}{res}         61       6.25       6.25      25.00
{txt}        BREMEN                 {c |}{res}         61       6.25       6.25      31.25
{txt}        HAMBURG                {c |}{res}         61       6.25       6.25      37.50
{txt}        HESSE                  {c |}{res}         61       6.25       6.25      43.75
{txt}        LOWER SAXONY           {c |}{res}         61       6.25       6.25      50.00
{txt}        MECKLENBURG-VORPOMMERN {c |}{res}         61       6.25       6.25      56.25
{txt}        NORTH RHINE-WESTPHALIA {c |}{res}         61       6.25       6.25      62.50
{txt}        RHINELAND-PALATINATE   {c |}{res}         61       6.25       6.25      68.75
{txt}        SAARLAND               {c |}{res}         61       6.25       6.25      75.00
{txt}        SAXONY                 {c |}{res}         61       6.25       6.25      81.25
{txt}        SAXONY-ANHALT          {c |}{res}         61       6.25       6.25      87.50
{txt}        SCHLESWIG-HOLSTEIN     {c |}{res}         61       6.25       6.25      93.75
{txt}        THURINGA               {c |}{res}         61       6.25       6.25     100.00
{txt}        Total                  {c |}{res}        976     100.00     100.00           
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. 
. **Descriptive Graph for Educational Systems
. gen destrat_2gr_GDR = destrat_2gr
{txt}(223 missing values generated)

{com}. replace destrat_2gr_GDR = 89 if GDR == 1
{txt}(210 real changes made)

{com}. fre destrat_2gr_GDR
{res}
{txt}destrat_2gr_GDR
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0     {c |}{res}        408      41.80      42.37      42.37
{txt}        1     {c |}{res}        345      35.35      35.83      78.19
{txt}        89    {c |}{res}        210      21.52      21.81     100.00
{txt}        Total {c |}{res}        963      98.67     100.00           
{txt}Missing .     {c |}{res}         13       1.33                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. *for plotting: GDR as lowest value -> lightest color; less stratified as highest value = darkest color
. gen plot_destrat_GDR = destrat_2gr_GDR
{txt}(13 missing values generated)

{com}. recode plot_destrat_GDR (89=0) (0 = 1) (1 = 2)
{txt}(963 changes made to {bf:plot_destrat_GDR})

{com}. fre plot_destrat_GDR
{res}
{txt}plot_destrat_GDR
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0     {c |}{res}        210      21.52      21.81      21.81
{txt}        1     {c |}{res}        408      41.80      42.37      64.17
{txt}        2     {c |}{res}        345      35.35      35.83     100.00
{txt}        Total {c |}{res}        963      98.67     100.00           
{txt}Missing .     {c |}{res}         13       1.33                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. graph drop _all
{txt}
{com}. panelview plot_destrat_GDR, i(bula) t(year_school) type(treat) xlabdist(5) theme(bw) graphregion(fcolor(white)) legend(label(1 "Former GDR") label(2 "Stratifying Policies") label(3 "Destratifiying  Policies") pos(6) row(1)) ytitle("German Länder (Federal States)", size(vsmall)) xtitle("Year", size(vsmall)) title("(De-)stratifying education policies in the German Länder," "school years 1949/50-2009/10" "Binary Measure", size(vsmall) color(black)) scheme(plotplain)  graphregion(margin(small))

{txt}   #  Variable        # Missing   % Missing
--------------------------------------------
{res}   1 {col 7}plot_destrat_GDR{col 23}     13{col 36}   1.3

{txt}Missing for {c |}
   how many {c |}
 variables? {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        963       98.67       98.67
{txt}          1 {c |}{res}         13        1.33      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        976      100.00
Note: White cells represent missing values/observations in data.
{txt}
{com}. 
. graph export "$erg\Appendix\Descriptive_EduSys.pdf", replace 
{txt}{p 0 4 2}
file {bf}
..\Results\Final\Appendix\Descriptive_EduSys.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. *for better understanding: create same graph for each part of the index
. fre duration_prim
{res}
{txt}duration_prim {hline 2} Duration Primary Schooling
{txt}{hline 18}{hline 1}{c TT}{hline 44}
{txt}        {txt}           {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 18}{hline 1}{c +}{hline 44}
{txt}Valid   0  4 years {c |}{res}        419      42.93      55.79      55.79
{txt}        .5         {c |}{res}        169      17.32      22.50      78.30
{txt}        1  6 years {c |}{res}        163      16.70      21.70     100.00
{txt}        Total      {c |}{res}        751      76.95     100.00           
{txt}Missing .          {c |}{res}        225      23.05                      
{txt}Total              {c |}{res}        976     100.00                      
{txt}{hline 18}{hline 1}{c BT}{hline 44}

{com}. gen duration_prim_GDR = duration_prim
{txt}(225 missing values generated)

{com}. replace duration_prim_GDR = 89 if GDR == 1
{txt}(210 real changes made)

{com}. fre duration_prim_GDR
{res}
{txt}duration_prim_GDR
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0     {c |}{res}        419      42.93      43.60      43.60
{txt}        .5    {c |}{res}        169      17.32      17.59      61.19
{txt}        1     {c |}{res}        163      16.70      16.96      78.15
{txt}        89    {c |}{res}        210      21.52      21.85     100.00
{txt}        Total {c |}{res}        961      98.46     100.00           
{txt}Missing .     {c |}{res}         15       1.54                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. * for plotting: GDR lowest value; less stratified highest value
. recode duration_prim_GDR (89 = 0) (0 = 1) (0.5 = 2) (1 = 3), gen(plot_duration_prim)
{txt}(961 differences between {bf:duration_prim_GDR} and {bf:plot_duration_prim})

{com}. tab duration_prim_GDR plot_duration_prim,m

{txt}duration_p {c |}         RECODE of duration_prim_GDR
   rim_GDR {c |}         0          1          2          3 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
         0 {c |}{res}         0        419          0          0 {txt}{c |}{res}       419 
{txt}        .5 {c |}{res}         0          0        169          0 {txt}{c |}{res}       169 
{txt}         1 {c |}{res}         0          0          0        163 {txt}{c |}{res}       163 
{txt}        89 {c |}{res}       210          0          0          0 {txt}{c |}{res}       210 
{txt}         . {c |}{res}         0          0          0          0 {txt}{c |}{res}        15 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       210        419        169        163 {txt}{c |}{res}       976 


           {txt}{c |} RECODE of
           {c |} duration_p
duration_p {c |}  rim_GDR
   rim_GDR {c |}         . {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
         0 {c |}{res}         0 {txt}{c |}{res}       419 
{txt}        .5 {c |}{res}         0 {txt}{c |}{res}       169 
{txt}         1 {c |}{res}         0 {txt}{c |}{res}       163 
{txt}        89 {c |}{res}         0 {txt}{c |}{res}       210 
{txt}         . {c |}{res}        15 {txt}{c |}{res}        15 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}        15 {txt}{c |}{res}       976 
{txt}
{com}. label var duration_prim_GDR "Duration Primary Schooling"
{txt}
{com}. fre duration_prim_GDR
{res}
{txt}duration_prim_GDR {hline 2} Duration Primary Schooling
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0     {c |}{res}        419      42.93      43.60      43.60
{txt}        .5    {c |}{res}        169      17.32      17.59      61.19
{txt}        1     {c |}{res}        163      16.70      16.96      78.15
{txt}        89    {c |}{res}        210      21.52      21.85     100.00
{txt}        Total {c |}{res}        961      98.46     100.00           
{txt}Missing .     {c |}{res}         15       1.54                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. fre duration_prim
{res}
{txt}duration_prim {hline 2} Duration Primary Schooling
{txt}{hline 18}{hline 1}{c TT}{hline 44}
{txt}        {txt}           {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 18}{hline 1}{c +}{hline 44}
{txt}Valid   0  4 years {c |}{res}        419      42.93      55.79      55.79
{txt}        .5         {c |}{res}        169      17.32      22.50      78.30
{txt}        1  6 years {c |}{res}        163      16.70      21.70     100.00
{txt}        Total      {c |}{res}        751      76.95     100.00           
{txt}Missing .          {c |}{res}        225      23.05                      
{txt}Total              {c |}{res}        976     100.00                      
{txt}{hline 18}{hline 1}{c BT}{hline 44}

{com}. panelview plot_duration_prim, i(bula) t(year_school) type(treat) xlabdist(5)  graphregion(fcolor(white))  legend(label(1 "Former GDR") label(2 "4 years") label(3 "4 + 2 Years") label(4 "6 Years") pos(6) row(1)) ytitle("German Länder (Federal States)", size(vsmall)) xtitle("Year", size(vsmall)) title("(De-)stratifying education policies in the German Länder," "school years 1949/50-2009/10" "Duration Primary Schooling", size(vsmall)) scheme(plotplain) theme(bw) graphregion(margin(small))

{txt}   #  Variable        # Missing   % Missing
--------------------------------------------
{res}   1 {col 7}plot_duration_prim{col 23}     15{col 36}   1.5

{txt}Missing for {c |}
   how many {c |}
 variables? {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        961       98.46       98.46
{txt}          1 {c |}{res}         15        1.54      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        976      100.00
Note: White cells represent missing values/observations in data.
{txt}
{com}. tab bula duration_prim 

                      {txt}{c |}    Duration Primary Schooling
           Bundesland {c |}   4 years         .5    6 years {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}        58          0          0 {txt}{c |}{res}        58 
{txt}              BAVARIA {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         0          0         58 {txt}{c |}{res}        58 
{txt}          BRANDENBURG {c |}{res}         0          0         19 {txt}{c |}{res}        19 
{txt}               BREMEN {c |}{res}        26          0         35 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}        12         44          5 {txt}{c |}{res}        61 
{txt}                HESSE {c |}{res}        59          0          0 {txt}{c |}{res}        59 
{txt}         LOWER SAXONY {c |}{res}        16         11         34 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0         15          4 {txt}{c |}{res}        19 
{txt}NORTH RHINE-WESTPHA.. {c |}{res}        50         11          0 {txt}{c |}{res}        61 
{txt} RHINELAND-PALATINATE {c |}{res}        18         43          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}        12         42          0 {txt}{c |}{res}        54 
{txt}               SAXONY {c |}{res}        19          0          0 {txt}{c |}{res}        19 
{txt}        SAXONY-ANHALT {c |}{res}        13          0          6 {txt}{c |}{res}        19 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}        56          3          2 {txt}{c |}{res}        61 
{txt}             THURINGA {c |}{res}        19          0          0 {txt}{c |}{res}        19 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       419        169        163 {txt}{c |}{res}       751 
{txt}
{com}. 
. graph export "$erg\Appendix\Descriptive_EduSys_IndexPart1.pdf", replace 
{txt}{p 0 4 2}
file {bf}
..\Results\Final\Appendix\Descriptive_EduSys_IndexPart1.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. gen compr_school_GDR = compr_school
{txt}(210 missing values generated)

{com}. replace compr_school_GDR = 89 if GDR == 1
{txt}(210 real changes made)

{com}. fre compr_school_GDR
{res}
{txt}compr_school_GDR
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0     {c |}{res}        419      42.93      42.93      42.93
{txt}        1     {c |}{res}        347      35.55      35.55      78.48
{txt}        89    {c |}{res}        210      21.52      21.52     100.00
{txt}        Total {c |}{res}        976     100.00     100.00           
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. fre compr_school
{res}
{txt}compr_school {hline 2} comprehensive school form
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0 no  {c |}{res}        419      42.93      54.70      54.70
{txt}        1 yes {c |}{res}        347      35.55      45.30     100.00
{txt}        Total {c |}{res}        766      78.48     100.00           
{txt}Missing .     {c |}{res}        210      21.52                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. recode compr_school_GDR (0= 1) (1=2) (89 = 0), gen(plot_compr_school)
{txt}(976 differences between {bf:compr_school_GDR} and {bf:plot_compr_school})

{com}. panelview plot_compr_school, i(bula) t(year_school) type(treat) xlabdist(5) theme(bw) graphregion(fcolor(white)) legend(label(1 "Former GDR") label(2 "No Comprehensive School)") label(3 "Comprehensive School")  pos(6) row(1)) ytitle("German Länder (Federal States)", size(vsmall)) xtitle("Year", size(vsmall)) title("(De-)stratifying education policies in the German Länder," "school years 1949/50-2009/10" "Comprehensive School Form", size(vsmall) color(black)) scheme(plotplain) graphregion(margin(small)) 

{txt}   #  Variable        # Missing   % Missing
--------------------------------------------
{res}   1 {col 7}plot_compr_school{col 23}      0{col 36}   0.0

{txt}Missing for {c |}
   how many {c |}
 variables? {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        976      100.00      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        976      100.00
Note: White cells represent missing values/observations in data.
{txt}
{com}. 
. graph export "$erg\Appendix\Descriptive_EduSys_IndexPart2.pdf", replace 
{txt}{p 0 4 2}
file {bf}
..\Results\Final\Appendix\Descriptive_EduSys_IndexPart2.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. gen share_gym_GDR = share_gym
{txt}(224 missing values generated)

{com}. replace share_gym_GDR = 89 if GDR == 1
{txt}(210 real changes made)

{com}. fre share_gym_GDR
{res}
{txt}share_gym_GDR
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0     {c |}{res}        332      34.02      34.51      34.51
{txt}        .33   {c |}{res}        223      22.85      23.18      57.69
{txt}        .66   {c |}{res}        165      16.91      17.15      74.84
{txt}        1     {c |}{res}         32       3.28       3.33      78.17
{txt}        89    {c |}{res}        210      21.52      21.83     100.00
{txt}        Total {c |}{res}        962      98.57     100.00           
{txt}Missing .     {c |}{res}         14       1.43                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. fre share_gym
{res}
{txt}share_gym {hline 2} Gymnasium as share of all schools leading to Abitur
{txt}{hline 23}{hline 1}{c TT}{hline 44}
{txt}        {txt}                {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 23}{hline 1}{c +}{hline 44}
{txt}Valid   0         >=95% {c |}{res}        332      34.02      44.15      44.15
{txt}        .33000001       {c |}{res}        223      22.85      29.65      73.80
{txt}        .66000003       {c |}{res}        165      16.91      21.94      95.74
{txt}        1         <60%  {c |}{res}         32       3.28       4.26     100.00
{txt}        Total           {c |}{res}        752      77.05     100.00           
{txt}Missing .               {c |}{res}        224      22.95                      
{txt}Total                   {c |}{res}        976     100.00                      
{txt}{hline 23}{hline 1}{c BT}{hline 44}

{com}. 
. recode share_gym_GDR (89 = 0) (0=1) (0.33 = 2) (0.66 = 3) (1= 4), gen(plot_share_gym) 
{txt}(962 differences between {bf:share_gym_GDR} and {bf:plot_share_gym})

{com}. fre plot_share_gym
{res}
{txt}plot_share_gym {hline 2} RECODE of share_gym_GDR
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0     {c |}{res}        210      21.52      21.83      21.83
{txt}        1     {c |}{res}        332      34.02      34.51      56.34
{txt}        2     {c |}{res}        223      22.85      23.18      79.52
{txt}        3     {c |}{res}        165      16.91      17.15      96.67
{txt}        4     {c |}{res}         32       3.28       3.33     100.00
{txt}        Total {c |}{res}        962      98.57     100.00           
{txt}Missing .     {c |}{res}         14       1.43                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. tab plot_share_gym share_gym_GDR

 {txt}RECODE of {c |}
share_gym_ {c |}                share_gym_GDR
       GDR {c |}         0        .33        .66          1 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
         0 {c |}{res}         0          0          0          0 {txt}{c |}{res}       210 
{txt}         1 {c |}{res}       332          0          0          0 {txt}{c |}{res}       332 
{txt}         2 {c |}{res}         0        223          0          0 {txt}{c |}{res}       223 
{txt}         3 {c |}{res}         0          0        165          0 {txt}{c |}{res}       165 
{txt}         4 {c |}{res}         0          0          0         32 {txt}{c |}{res}        32 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       332        223        165         32 {txt}{c |}{res}       962 


 {txt}RECODE of {c |} share_gym_
share_gym_ {c |}    GDR
       GDR {c |}        89 {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
         0 {c |}{res}       210 {txt}{c |}{res}       210 
{txt}         1 {c |}{res}         0 {txt}{c |}{res}       332 
{txt}         2 {c |}{res}         0 {txt}{c |}{res}       223 
{txt}         3 {c |}{res}         0 {txt}{c |}{res}       165 
{txt}         4 {c |}{res}         0 {txt}{c |}{res}        32 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}       210 {txt}{c |}{res}       962 
{txt}
{com}. panelview plot_share_gym, i(bula) t(year_school) type(treat) xlabdist(5) theme(bw) graphregion(fcolor(white)) legend(label(1 "Former GDR") label(2 ">= 95%") label(3 "80-95%") label(4 "60-80%") label(5 "< 60%") pos(6) row(1) title(" ")) ytitle("German Länder (Federal States)", size(vsmall)) xtitle("Year", size(vsmall)) title("(De-)stratifying education policies in the German Länder," "school years 1949/50-2009/10"  "Share of Gymnasium of all schools leading to Abitur", size(vsmall) color(black))scheme(plotplain) graphregion(margin(small))

{txt}   #  Variable        # Missing   % Missing
--------------------------------------------
{res}   1 {col 7}plot_share_gym{col 23}     14{col 36}   1.4

{txt}Missing for {c |}
   how many {c |}
 variables? {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        962       98.57       98.57
{txt}          1 {c |}{res}         14        1.43      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        976      100.00
Too many treatment levels; treat as continuous.
Note: White cells represent missing values/observations in data.
{txt}
{com}. 
. graph export "$erg\Appendix\Descriptive_EduSys_IndexPart3.pdf", replace 
{txt}{p 0 4 2}
file {bf}
..\Results\Final\Appendix\Descriptive_EduSys_IndexPart3.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. ***Descriptive Graph for continuous outcome (continous stratification index)
. 
. panelview destrat_5gr, i(bula) t(year_school) type(treat) xlabdist(5) theme(bw) graphregion(fcolor(white)) legend(label(1 "Stratifying Policies") label(2 " ") label(3 " ") label(4 " ")  label(5 "De-Stratifying Policies") pos(6) row(1) title(" ")) ytitle("German Länder (Federal States)", size(vsmall)) xtitle("Year", size(vsmall)) title("(De-)stratifying education policies in the German Länder," "school years 1949/50-2009/10", size(vsmall) color(black)) scheme(plotplain)   note("Continuous measure of (de-)stratifying education policies aggregated into 5 categories for graphical display." "Original index more fine-grained." "Educational Policies in former GDR as missing (white)", size(tiny)) graphregion(margin(small))

{txt}   #  Variable        # Missing   % Missing
--------------------------------------------
{res}   1 {col 7}destrat_5gr{col 23}    223{col 36}  22.8

{txt}Missing for {c |}
   how many {c |}
 variables? {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        753       77.15       77.15
{txt}          1 {c |}{res}        223       22.85      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        976      100.00
Too many treatment levels; treat as continuous.
Note: White cells represent missing values/observations in data.
{txt}
{com}. 
. graph export "$erg\Descriptive_EduSys_5grCont.pdf", replace 
{txt}{p 0 4 2}
file {bf}
..\Results\Final\Descriptive_EduSys_5grCont.pdf{rm}
saved as
PDF
format
{p_end}

{com}. graph export "$erg\Descriptive_EduSys_5grCont.svg", replace 
{txt}{p 0 4 2}
file {bf}
..\Results\Final\Descriptive_EduSys_5grCont.svg{rm}
saved as
SVG
format
{p_end}

{com}. 
. gen bulayouth=bula 
{txt}
{com}. fre bulayouth
{res}
{txt}bulayouth
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   BADEN-WUERTTEMBERG     {c |}{res}         61       6.25       6.25       6.25
{txt}        BAVARIA                {c |}{res}         61       6.25       6.25      12.50
{txt}        BERLIN                 {c |}{res}         61       6.25       6.25      18.75
{txt}        BRANDENBURG            {c |}{res}         61       6.25       6.25      25.00
{txt}        BREMEN                 {c |}{res}         61       6.25       6.25      31.25
{txt}        HAMBURG                {c |}{res}         61       6.25       6.25      37.50
{txt}        HESSE                  {c |}{res}         61       6.25       6.25      43.75
{txt}        LOWER SAXONY           {c |}{res}         61       6.25       6.25      50.00
{txt}        MECKLENBURG-VORPOMMERN {c |}{res}         61       6.25       6.25      56.25
{txt}        NORTH RHINE-WESTPHALIA {c |}{res}         61       6.25       6.25      62.50
{txt}        RHINELAND-PALATINATE   {c |}{res}         61       6.25       6.25      68.75
{txt}        SAARLAND               {c |}{res}         61       6.25       6.25      75.00
{txt}        SAXONY                 {c |}{res}         61       6.25       6.25      81.25
{txt}        SAXONY-ANHALT          {c |}{res}         61       6.25       6.25      87.50
{txt}        SCHLESWIG-HOLSTEIN     {c |}{res}         61       6.25       6.25      93.75
{txt}        THURINGA               {c |}{res}         61       6.25       6.25     100.00
{txt}        Total                  {c |}{res}        976     100.00     100.00           
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. 
. ******
. *Intermediate result
. ******
. 
. *basically no variation (especially over time, but also between federal states) regarding
. *  - abitur_all (yes/no whether it's possible to get abitur at all schools)
. *-> exclude from index!
. 
. *****
. ***
. *decompose Edu System Variables into Between & Within for different observation periods
. ***
. *****
. 
. egen bulay_nr = group(bula)
{txt}
{com}. tab bula bulay_nr

                      {txt}{c |}           group(bula)
           Bundesland {c |}         1          2          3 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}              BAVARIA {c |}{res}         0         61          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         0          0         61 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}                HESSE {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}         LOWER SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}NORTH RHINE-WESTPHA.. {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt} RHINELAND-PALATINATE {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}        SAXONY-ANHALT {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}             THURINGA {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}        61         61         61 {txt}{c |}{res}       976 


                      {txt}{c |}           group(bula)
           Bundesland {c |}         4          5          6 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}              BAVARIA {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}         0         61          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         0          0         61 {txt}{c |}{res}        61 
{txt}                HESSE {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}         LOWER SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}NORTH RHINE-WESTPHA.. {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt} RHINELAND-PALATINATE {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}        SAXONY-ANHALT {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}             THURINGA {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}        61         61         61 {txt}{c |}{res}       976 


                      {txt}{c |}           group(bula)
           Bundesland {c |}         7          8          9 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}              BAVARIA {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}                HESSE {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}         LOWER SAXONY {c |}{res}         0         61          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0          0         61 {txt}{c |}{res}        61 
{txt}NORTH RHINE-WESTPHA.. {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt} RHINELAND-PALATINATE {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}        SAXONY-ANHALT {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}             THURINGA {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}        61         61         61 {txt}{c |}{res}       976 


                      {txt}{c |}           group(bula)
           Bundesland {c |}        10         11         12 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}              BAVARIA {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}                HESSE {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}         LOWER SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}NORTH RHINE-WESTPHA.. {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt} RHINELAND-PALATINATE {c |}{res}         0         61          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         0          0         61 {txt}{c |}{res}        61 
{txt}               SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}        SAXONY-ANHALT {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}             THURINGA {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}        61         61         61 {txt}{c |}{res}       976 


                      {txt}{c |}           group(bula)
           Bundesland {c |}        13         14         15 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}              BAVARIA {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}                HESSE {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}         LOWER SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}NORTH RHINE-WESTPHA.. {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt} RHINELAND-PALATINATE {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}               SAXONY {c |}{res}        61          0          0 {txt}{c |}{res}        61 
{txt}        SAXONY-ANHALT {c |}{res}         0         61          0 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0         61 {txt}{c |}{res}        61 
{txt}             THURINGA {c |}{res}         0          0          0 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}        61         61         61 {txt}{c |}{res}       976 


                      {txt}{c |} group(bula
                      {c |}     )
           Bundesland {c |}        16 {c |}     Total
{hline 22}{c +}{hline 11}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0 {txt}{c |}{res}        61 
{txt}              BAVARIA {c |}{res}         0 {txt}{c |}{res}        61 
{txt}               BERLIN {c |}{res}         0 {txt}{c |}{res}        61 
{txt}          BRANDENBURG {c |}{res}         0 {txt}{c |}{res}        61 
{txt}               BREMEN {c |}{res}         0 {txt}{c |}{res}        61 
{txt}              HAMBURG {c |}{res}         0 {txt}{c |}{res}        61 
{txt}                HESSE {c |}{res}         0 {txt}{c |}{res}        61 
{txt}         LOWER SAXONY {c |}{res}         0 {txt}{c |}{res}        61 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0 {txt}{c |}{res}        61 
{txt}NORTH RHINE-WESTPHA.. {c |}{res}         0 {txt}{c |}{res}        61 
{txt} RHINELAND-PALATINATE {c |}{res}         0 {txt}{c |}{res}        61 
{txt}             SAARLAND {c |}{res}         0 {txt}{c |}{res}        61 
{txt}               SAXONY {c |}{res}         0 {txt}{c |}{res}        61 
{txt}        SAXONY-ANHALT {c |}{res}         0 {txt}{c |}{res}        61 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0 {txt}{c |}{res}        61 
{txt}             THURINGA {c |}{res}        61 {txt}{c |}{res}        61 
{txt}{hline 22}{c +}{hline 11}{c +}{hline 10}
                Total {c |}{res}        61 {txt}{c |}{res}       976 
{txt}
{com}. 
. **
. fre destrat_2gr
{res}
{txt}destrat_2gr {hline 2} de-stratification, 2 groups
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   0 (more) stratified    {c |}{res}        408      41.80      54.18      54.18
{txt}        1 (more) de-stratified {c |}{res}        345      35.35      45.82     100.00
{txt}        Total                  {c |}{res}        753      77.15     100.00           
{txt}Missing .                      {c |}{res}        223      22.85                      
{txt}Total                          {c |}{res}        976     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. 
. rename destrat_2gr mod_edsys
{res}{txt}
{com}. 
. fre duration_prim share_gym compr_school
{res}
{txt}duration_prim {hline 2} Duration Primary Schooling
{txt}{hline 18}{hline 1}{c TT}{hline 44}
{txt}        {txt}           {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 18}{hline 1}{c +}{hline 44}
{txt}Valid   0  4 years {c |}{res}        419      42.93      55.79      55.79
{txt}        .5         {c |}{res}        169      17.32      22.50      78.30
{txt}        1  6 years {c |}{res}        163      16.70      21.70     100.00
{txt}        Total      {c |}{res}        751      76.95     100.00           
{txt}Missing .          {c |}{res}        225      23.05                      
{txt}Total              {c |}{res}        976     100.00                      
{txt}{hline 18}{hline 1}{c BT}{hline 44}
{res}
{txt}share_gym {hline 2} Gymnasium as share of all schools leading to Abitur
{txt}{hline 23}{hline 1}{c TT}{hline 44}
{txt}        {txt}                {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 23}{hline 1}{c +}{hline 44}
{txt}Valid   0         >=95% {c |}{res}        332      34.02      44.15      44.15
{txt}        .33000001       {c |}{res}        223      22.85      29.65      73.80
{txt}        .66000003       {c |}{res}        165      16.91      21.94      95.74
{txt}        1         <60%  {c |}{res}         32       3.28       4.26     100.00
{txt}        Total           {c |}{res}        752      77.05     100.00           
{txt}Missing .               {c |}{res}        224      22.95                      
{txt}Total                   {c |}{res}        976     100.00                      
{txt}{hline 23}{hline 1}{c BT}{hline 44}
{res}
{txt}compr_school {hline 2} comprehensive school form
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0 no  {c |}{res}        419      42.93      54.70      54.70
{txt}        1 yes {c |}{res}        347      35.55      45.30     100.00
{txt}        Total {c |}{res}        766      78.48     100.00           
{txt}Missing .     {c |}{res}        210      21.52                      
{txt}Total         {c |}{res}        976     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. drop duration_prim_GDR share_gym_GDR compr_school_GDR
{txt}
{com}. 
. *for single policy indicators duration_prim and need to be dichotomized
. replace duration_prim = 1 if duration_prim == 0.5
{txt}(169 real changes made)

{com}. fre share_gym
{res}
{txt}share_gym {hline 2} Gymnasium as share of all schools leading to Abitur
{txt}{hline 23}{hline 1}{c TT}{hline 44}
{txt}        {txt}                {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 23}{hline 1}{c +}{hline 44}
{txt}Valid   0         >=95% {c |}{res}        332      34.02      44.15      44.15
{txt}        .33000001       {c |}{res}        223      22.85      29.65      73.80
{txt}        .66000003       {c |}{res}        165      16.91      21.94      95.74
{txt}        1         <60%  {c |}{res}         32       3.28       4.26     100.00
{txt}        Total           {c |}{res}        752      77.05     100.00           
{txt}Missing .               {c |}{res}        224      22.95                      
{txt}Total                   {c |}{res}        976     100.00                      
{txt}{hline 23}{hline 1}{c BT}{hline 44}

{com}. replace share_gym = 1 if share_gym > 0.32 & share_gym < 0.67 // recoding of middle-values 0.33 and 0.66
{txt}(388 real changes made)

{com}. fre share_gym
{res}
{txt}share_gym {hline 2} Gymnasium as share of all schools leading to Abitur
{txt}{hline 15}{hline 1}{c TT}{hline 44}
{txt}        {txt}        {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 15}{hline 1}{c +}{hline 44}
{txt}Valid   0 >=95% {c |}{res}        332      34.02      44.15      44.15
{txt}        1 <60%  {c |}{res}        420      43.03      55.85     100.00
{txt}        Total   {c |}{res}        752      77.05     100.00           
{txt}Missing .       {c |}{res}        224      22.95                      
{txt}Total           {c |}{res}        976     100.00                      
{txt}{hline 15}{hline 1}{c BT}{hline 44}

{com}. 
. *foreach of the educational system variables + pol/econ macro control vars
. foreach sysvar in mod_edsys destrat_index destrat_5gr duration_prim compr_school share_gym alo alorate SPDvote leftvote SPDcabinet leftcabinet {c -(}
{txt}  2{com}. *** für alle Jahre:
. bysort bulay_nr: egen B_`sysvar'=mean(`sysvar')
{txt}  3{com}. gen W_`sysvar'=`sysvar'-B_`sysvar'
{txt}  4{com}. {c )-}
{txt}(223 missing values generated)
(223 missing values generated)
(223 missing values generated)
(225 missing values generated)
(210 missing values generated)
(224 missing values generated)
(245 missing values generated)
(374 missing values generated)
(214 missing values generated)
(214 missing values generated)
(209 missing values generated)
(209 missing values generated)

{com}. 
. label variable B_mod_edsys "Between: Binary De-stratification Index"
{txt}
{com}. label variable W_mod_edsys "Within: Binary De-stratification Index"
{txt}
{com}. label variable B_destrat_index "Between: De-Strat. Index"
{txt}
{com}. label variable W_destrat_index "Within: De-Strat. Index"
{txt}
{com}. label variable B_destrat_5gr "Between: De-Stratification Index"
{txt}
{com}. label variable W_destrat_5gr "Within: De-Stratification Index"
{txt}
{com}. 
. label variable mod_edsys "Binary De-stratification Index"
{txt}
{com}. label variable duration_prim "Duration Primary Schooling"
{txt}
{com}. label variable compr_school "Comprehensive School Form"
{txt}
{com}. label variable share_gym "Gymnasium as % of Schools w. Abitur"
{txt}
{com}. 
. label variable B_duration_prim "Between: Duration Primary Schooling"
{txt}
{com}. label variable B_compr_school "Between: Comprehensive School Form"
{txt}
{com}. label variable B_share_gym "Between: Gymnasium as % of Schools w. Abitur"
{txt}
{com}. 
. label variable W_duration_prim "Within: Duration Primary Schooling"
{txt}
{com}. label variable W_compr_school "Within: Comprehensive School Form"
{txt}
{com}. label variable W_share_gym "Within: Gymnasium as % of Schools w. Abitur"
{txt}
{com}. 
. label variable W_alo "Within: Absolute Unemployed Individuals "
{txt}
{com}. label variable W_alorate "Within: Unemployment Rate "
{txt}
{com}. label variable W_SPDvote "Within: SPD vote share "
{txt}
{com}. label variable W_leftvote "Within: Left parties' vote share"
{txt}
{com}. label variable W_SPDcabinet "Within: SPD cabinet strength"
{txt}
{com}. label variable W_leftcabinet "Within: Left parties' cabinet strength"
{txt}
{com}. 
. label variable B_alo "Between: Absolute Unemployed Individuals "
{txt}
{com}. label variable B_alorate "Between: Unemployment Rate "
{txt}
{com}. label variable B_SPDvote "Between: SPD vote share "
{txt}
{com}. label variable B_leftvote "Between: Left parties' vote share"
{txt}
{com}. label variable B_SPDcabinet "Between: SPD cabinet strength"
{txt}
{com}. label variable B_leftcabinet "Between: Left parties' cabinet strength"
{txt}
{com}. 
. 
. drop bulay_nr
{txt}
{com}. 
. br bula year_school destrat_2gr B_mod_edsys W_mod_edsys
{txt}
{com}. 
. save, replace
{txt}{p 0 4 2}
file {bf}
Typology_Mar23.dta{rm}
saved
{p_end}

{com}. 
. 
. 
. *** ALLBUS *** 
. **************
. 
. use "ZA5274_v1-1-0.dta", clear
{txt}(ALLBUS Kumulation 1980-2018)

{com}. 
. *fre tps68 mps68 isei68 gld68 isco88 siops88 mps88 isei88 isco08 siops08 isei08 eseg
. *use isei88, since it covers the longest time span (not observed 1980-1998, isei68 not observed 1980-1998 + 2012-2018; isei08 not observed 1980-2012 )
. 
. *create reduced dataset with variables we actually use:
. keep year respid pa01 pa02a pa04 pv03 pp24-pp41 pe01-pe08 id01-id03 im01 de01 de05-de15 iscd975 iscd11 sex age work miscd975 fiscd975 misei88 fisei88 pv02 dg10 yborn land dg03 educ feduc meduc hhinc inc isei88 isco88 dw01 dw02 dw03 mde01 mde05-mde15 fde01 fde05-fde15 german
{txt}
{com}. 
. save Allbus_prep_Mar23.dta, replace
{txt}{p 0 4 2}
(file {bf}
Allbus_prep_Mar23.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
Allbus_prep_Mar23.dta{rm}
saved
{p_end}

{com}. 
. 
. * the following code means: 
. * for each variable in the Allbus, confirm that the variable is numeric
. * if there is an error in the command, ignore it
. * and quietly summarize the variable if it is smaller than 0
. * then, if it is smaller than 0 and if the number of observations is unequal 0
. * quietly insert the list of values in the variable in the local macro "mlist"
. * and for each observation in the local "mlist",
. * then follows the guidelines for each missing value: if the observation is -1, define the label of the observation as .a and label it "content"
. * finally, mvdecode changes the numeric values to missing values (as defined before)
. 
. foreach var of varlist _all {c -(}
{txt}  2{com}.         capture confirm numeric var `var'
{txt}  3{com}.           if !_rc {c -(}
{txt}  4{com}.          qui: summ `var' if `var' < 0
{txt}  5{com}.           if `r(N)' !=0{c -(}
{txt}  6{com}.                 qui: levelsof `var' if `var' < 0, local(mlist)
{txt}  7{com}.                         foreach i in `mlist' {c -(}
{txt}  8{com}.                         local content: label `var' `i', strict
{txt}  9{com}.                         if `i' == -1 {c -(} 
{txt} 10{com}.                         label define `var' .a  "`content'" , modify
{txt} 11{com}.                         {c )-}
{txt} 12{com}.                         if `i' == -6 {c -(} 
{txt} 13{com}.                         label define `var' .b  "`content'" , modify
{txt} 14{com}.                         {c )-}
{txt} 15{com}.                         if `i' == -7 {c -(} 
{txt} 16{com}.                         label define `var' .c "`content'" , modify
{txt} 17{com}.                         {c )-}
{txt} 18{com}.                         if `i' == -8 {c -(} 
{txt} 19{com}.                         label define `var' .d  "`content'" , modify
{txt} 20{com}.                         {c )-}
{txt} 21{com}.                         if `i' == -9 {c -(}
{txt} 22{com}.                         label define `var' .e   "`content'" , modify
{txt} 23{com}.                         {c )-}
{txt} 24{com}.                         if `i' == -10 {c -(}
{txt} 25{com}.                         label define `var' .f   "`content'" , modify
{txt} 26{com}.                         {c )-}
{txt} 27{com}.                         if `i' == -11 {c -(}
{txt} 28{com}.                         label define `var' .g   "`content'" , modify
{txt} 29{com}.                         {c )-}
{txt} 30{com}.                         if `i' == -12 {c -(} 
{txt} 31{com}.                         label define `var' .h "`content'" , modify
{txt} 32{com}.                         {c )-}       
{txt} 33{com}.                         if `i' == -13 {c -(} 
{txt} 34{com}.                         label define `var'   .i   "`content'" , modify
{txt} 35{com}.                         {c )-}
{txt} 36{com}.                         if `i' == -14 {c -(} 
{txt} 37{com}.                         label define `var' .j  "`content'" , modify
{txt} 38{com}.                         {c )-}
{txt} 39{com}.                         if `i' == -32 {c -(} 
{txt} 40{com}.                         label define `var'  .k   "`content'" , modify
{txt} 41{com}.                         {c )-}       
{txt} 42{com}.                         if `i' == -33 {c -(} 
{txt} 43{com}.                         label define `var' .l   "`content'" , modify
{txt} 44{com}.                         {c )-}
{txt} 45{com}.                         if `i' == -34 {c -(} 
{txt} 46{com}.                         label define `var' .m  "`content'" , modify
{txt} 47{com}.                         {c )-}               
{txt} 48{com}.                         if `i' == -41 {c -(} 
{txt} 49{com}.                         label define `var' .n    "`content'" , modify
{txt} 50{com}.                         {c )-}
{txt} 51{com}.                         if `i' == -88 {c -(}          
{txt} 52{com}.                         label define `var' .z  "`content'" , modify
{txt} 53{com}.                         {c )-}
{txt} 54{com}.                         if `i' == -50  {c -(}
{txt} 55{com}.                         label define `var' .o "`content'" , modify
{txt} 56{com}.                         {c )-}
{txt} 57{com}.                         if `i' == -51  {c -(}
{txt} 58{com}.                         label define `var' .p "`content'" , modify
{txt} 59{com}.                         {c )-}
{txt} 60{com}.                         if `i' == -52  {c -(}
{txt} 61{com}.                         label define `var' .q "`content'" , modify
{txt} 62{com}.                         {c )-}
{txt} 63{com}.                         if `i' == -53  {c -(}
{txt} 64{com}.                         label define `var' .r "`content'" , modify
{txt} 65{com}.                         {c )-}
{txt} 66{com}.                         if `i' == -54  {c -(}
{txt} 67{com}.                         label define `var' .s "`content'" , modify
{txt} 68{com}.                         {c )-}
{txt} 69{com}.                         if `i' == -55  {c -(}
{txt} 70{com}.                         label define `var' .t "`content'" , modify
{txt} 71{com}.                         {c )-}
{txt} 72{com}.                         if `i' == -56  {c -(}
{txt} 73{com}.                         label define `var' .u "`content'" , modify
{txt} 74{com}.                         {c )-}
{txt} 75{com}.                         if `i' == -57  {c -(}
{txt} 76{com}.                         label define `var' .v "`content'" , modify
{txt} 77{com}.                         {c )-}
{txt} 78{com}.                         if `i' == -58  {c -(}
{txt} 79{com}.                         label define `var' .w "`content'" , modify
{txt} 80{com}.                         {c )-}
{txt} 81{com}.                         if `i' == -59  {c -(}
{txt} 82{com}.                         label define `var' .x "`content'" , modify
{txt} 83{com}.                         {c )-}
{txt} 84{com}.                         {c )-}
{txt} 85{com}. 
.                         {c )-}       
{txt} 86{com}. qui:    mvdecode `var', mv(-1=.a \-6=.b \-7=.c  \-8     =.d     \ -9=.e ///
>         \ -10=.f \ -11=.g \-12 =.h\-13 =.i \-14 =.j     ///
>         \ -32=.k \ -33=.l \-34 =.m \ -41=.n ///
>         \ -50=.o \ -51=.p \-52 =.q  \ -53=.r\ -54=.s\ -55=.t \ -56=.u \-57=.v \ -58=.w  \ -59=.x ///
>         \ -88=.z)
{txt} 87{com}. {c )-}
{txt} 88{com}. {c )-}
{txt}
{com}. 
. *** CODING *** 
. **************
. 
. 
. * DEPENDENT VARIABLES
. * political interest
. gen orig_polint=pa02a
{txt}(4,643 missing values generated)

{com}. label define interest 1 "very interested" 2 "rather interested" 3 "interested" 4 "rather not interested" 5 "not at all interested"
{txt}
{com}. label values orig_polint interest
{txt}
{com}. label variable orig_polint "Political Interest"
{txt}
{com}. tab year orig_polint, missing

{txt}ERHEBUNGSJ {c |}             Political Interest
       AHR {c |} very inte  rather in  intereste  rather no {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}       237        532      1,215        654 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}        89        266        694        325 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}       233        528      1,288        628 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}       328        568      1,364        621 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}       404        735      1,258        478 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}       299        600      1,329        570 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}       401        733      1,524        656 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}       268        655      1,492        689 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}       278        647      1,504        796 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       238        653      1,407        666 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}       313        734      1,493        901 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}       286        626      1,151        530 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}       245        596      1,175        649 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}       310        668      1,477        681 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       273        782      1,555        561 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}       283        619      1,159        507 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}       327        657      1,387        729 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}       449        870      1,413        533 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}       427        882      1,429        556 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       385        943      1,605        429 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     6,073     13,294     26,919     12,159 {txt}{c |}{res}    68,161 


{txt}ERHEBUNGSJ {c |}             Political Interest
       AHR {c |} not at al         .a         .e         .g {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}       313          0          4          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}       122          0          8      1,487 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}       316          0         11          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}       212          0          2          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0      3,052          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}       160          0         16          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}       247          0         13          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}       228          0          6          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}       344          0          2          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}       289          0          4          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       259          0         11          0 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}       351          0         12          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}       226          0          1          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}       280          0          1          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}       281          0          4          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       296          0          2          0 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}       254          0          5          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}       380          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}       206          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}       196          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       113          0          2          0 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     5,073      3,052        104      1,487 {txt}{c |}{res}    68,161 
{txt}
{com}. gen polint = (orig_polint - 6) * (-1)
{txt}(4,643 missing values generated)

{com}. fre polint
{res}
{txt}polint
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   1     {c |}{res}       5073       7.44       7.99       7.99
{txt}        2     {c |}{res}      12159      17.84      19.14      27.13
{txt}        3     {c |}{res}      26919      39.49      42.38      69.51
{txt}        4     {c |}{res}      13294      19.50      20.93      90.44
{txt}        5     {c |}{res}       6073       8.91       9.56     100.00
{txt}        Total {c |}{res}      63518      93.19     100.00           
{txt}Missing .     {c |}{res}       4643       6.81                      
{txt}Total         {c |}{res}      68161     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. replace polint = (polint-1) / 4
{txt}(63,518 real changes made)

{com}. tab polint orig_polint

           {txt}{c |}             Political Interest
    polint {c |} very inte  rather in  intereste  rather no {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
         0 {c |}{res}         0          0          0          0 {txt}{c |}{res}     5,073 
{txt}       .25 {c |}{res}         0          0          0     12,159 {txt}{c |}{res}    12,159 
{txt}        .5 {c |}{res}         0          0     26,919          0 {txt}{c |}{res}    26,919 
{txt}       .75 {c |}{res}         0     13,294          0          0 {txt}{c |}{res}    13,294 
{txt}         1 {c |}{res}     6,073          0          0          0 {txt}{c |}{res}     6,073 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     6,073     13,294     26,919     12,159 {txt}{c |}{res}    63,518 


           {txt}{c |} Political
           {c |}  Interest
    polint {c |} not at al {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
         0 {c |}{res}     5,073 {txt}{c |}{res}     5,073 
{txt}       .25 {c |}{res}         0 {txt}{c |}{res}    12,159 
{txt}        .5 {c |}{res}         0 {txt}{c |}{res}    26,919 
{txt}       .75 {c |}{res}         0 {txt}{c |}{res}    13,294 
{txt}         1 {c |}{res}         0 {txt}{c |}{res}     6,073 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}     5,073 {txt}{c |}{res}    63,518 
{txt}
{com}. label define revinterest 1 "very interested"  0 "not at all interested"
{txt}
{com}. label values polint revinterest
{txt}
{com}. label variable polint "Political Interest"
{txt}
{com}. fre polint 
{res}
{txt}polint {hline 2} Political Interest
{txt}{hline 27}{hline 1}{c TT}{hline 44}
{txt}        {txt}                    {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 27}{hline 1}{c +}{hline 44}
{txt}Valid   0   not at all      {c |}{res}       5073       7.44       7.99       7.99
{txt}            interested      {c |}{res}                                            
{txt}        .25                 {c |}{res}      12159      17.84      19.14      27.13
{txt}        .5                  {c |}{res}      26919      39.49      42.38      69.51
{txt}        .75                 {c |}{res}      13294      19.50      20.93      90.44
{txt}        1   very interested {c |}{res}       6073       8.91       9.56     100.00
{txt}        Total               {c |}{res}      63518      93.19     100.00           
{txt}Missing .                   {c |}{res}       4643       6.81                      
{txt}Total                       {c |}{res}      68161     100.00                      
{txt}{hline 27}{hline 1}{c BT}{hline 44}

{com}. *asked every year
. 
. ** forms of participation ever used
. * pp06-pp23: intention; pp24-41: self-reported participation in the past
. * available 1988, 1998, 2008, 2018 
. * in addition in 2002: participation in election, work in party, unlawful demonstration, demonstration, abstain, protest vote, petition
. * for most forms of participation, they ask in addition whether one has uyed these forms in the past two years - however, this information is only available for waves 1998 & 2008 (and therefore not coded)
. 
. * telling friends one's opinion
. gen opinion=pp24
{txt}(55,140 missing values generated)

{com}. label variable opinion "Told friends opinion"
{txt}
{com}. label values opinion binary
{txt}
{com}. tab year opinion , missing

{txt}ERHEBUNGSJ {c |}            Told friends opinion
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}       892      2,132          0         28 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       909      2,156          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0      2,820          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       869      2,594          0          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       673      2,796          0          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     3,343      9,678     54,929        211 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. * participation in elections
. gen elect=pp25
{txt}(52,485 missing values generated)

{com}. label variable elect "Participated in election"
{txt}
{com}. label values elect binary
{txt}
{com}. tab year elect , missing

{txt}ERHEBUNGSJ {c |}          Participated in election
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}       494      2,530          0         28 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       605      2,460          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}       439      2,216          0        165 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       739      2,724          0          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       445      3,024          0          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     2,722     12,954     52,109        376 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. * public discussion
. gen discuss=pp26
{txt}(55,140 missing values generated)

{com}. label variable discuss "Participated public discussion"
{txt}
{com}. label values discuss binary
{txt}
{com}. tab year discuss , missing

{txt}ERHEBUNGSJ {c |}       Participated public discussion
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}     2,339        685          0         28 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     2,350        715          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0      2,820          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}     2,547        916          0          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}     2,354      1,115          0          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     9,590      3,431     54,929        211 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. * citizen initative
. gen initiv=pp27
{txt}(52,485 missing values generated)

{com}. label variable initiv "Participated citizen initiative"
{txt}
{com}. label values initiv binary
{txt}
{com}. tab year initiv , missing

{txt}ERHEBUNGSJ {c |}       Participated citizen initiative
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}     2,653        371          0         28 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     2,813        252          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}     2,149        506          0        165 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}     3,103        360          0          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}     3,029        440          0          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}    13,747      1,929     52,109        376 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. * work in party
. gen wrkprty=pp28
{txt}(52,485 missing values generated)

{com}. label variable wrkprty "Worked in party"
{txt}
{com}. label values wrkprty binary
{txt}
{com}. tab year wrkprty , missing

{txt}ERHEBUNGSJ {c |}               Worked in party
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}     2,869        155          0         28 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     2,944        121          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}     2,377        278          0        165 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}     3,296        167          0          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}     3,237        232          0          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}    14,723        953     52,109        376 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. * support candidates
. gen suppcand=pp29
{txt}(62,072 missing values generated)

{com}. label variable suppcand "Supported candidates"
{txt}
{com}. label values suppcand binary
{txt}
{com}. tab year suppcand , missing

{txt}ERHEBUNGSJ {c |}            Supported candidates
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}     2,880        144          0         28 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     2,973         92          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0      2,820          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}         0          0      3,469          0 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}         0          0      3,477          0 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     5,853        236     61,875        197 {txt}{c |}{res}    68,161 
{txt}
{com}. * only 1988, 1998! 
. 
. * demonstration
. gen unlawdem=pp30
{txt}(52,485 missing values generated)

{com}. label variable unlawdem "Participated unlawful demonstration"
{txt}
{com}. label values unlawdem binary
{txt}
{com}. tab year unlawdem , missing

{txt}ERHEBUNGSJ {c |}     Participated unlawful demonstration
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}     2,949         75          0         28 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     2,960        105          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}     2,416        239          0        165 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}     3,333        130          0          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}     3,309        160          0          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}    14,967        709     52,109        376 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. * occupy building/street or the like
. gen occupy=pp31
{txt}(62,072 missing values generated)

{com}. label variable occupy "Participated occupation"
{txt}
{com}. label values occupy binary
{txt}
{com}. tab year occupy , missing

{txt}ERHEBUNGSJ {c |}           Participated occupation
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}     3,003         21          0         28 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     3,048         17          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0      2,820          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}         0          0      3,469          0 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}         0          0      3,477          0 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     6,051         38     61,875        197 {txt}{c |}{res}    68,161 
{txt}
{com}. *only 1988, 1998!
. 
. * making trouble in demonstration
. gen trouble=pp32
{txt}(62,072 missing values generated)

{com}. label variable trouble "Made trouble demonstration"
{txt}
{com}. label values trouble binary
{txt}
{com}. tab year trouble , missing

{txt}ERHEBUNGSJ {c |}         Made trouble demonstration
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}     3,014         10          0         28 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     3,048         17          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0      2,820          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}         0          0      3,469          0 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}         0          0      3,477          0 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     6,062         27     61,875        197 {txt}{c |}{res}    68,161 
{txt}
{com}. *only 1988, 1998!
. 
. * use violence against person
. gen violpers=pp33
{txt}(62,072 missing values generated)

{com}. label variable violpers "Used violence against person"
{txt}
{com}. label values violpers binary
{txt}
{com}. tab year violpers , missing

{txt}ERHEBUNGSJ {c |}        Used violence against person
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}     3,014         10          0         28 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     3,055         10          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0      2,820          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}         0          0      3,469          0 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}         0          0      3,477          0 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     6,069         20     61,875        197 {txt}{c |}{res}    68,161 
{txt}
{com}. *only 1988, 1998!
. 
. * intimidate opponents
. gen intimidate=pp34
{txt}(62,072 missing values generated)

{com}. label variable intimidate "Intimidated opponents"
{txt}
{com}. label values intimidate binary
{txt}
{com}. tab year intimidate , missing

{txt}ERHEBUNGSJ {c |}            Intimidated opponents
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}     2,998         26          0         28 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     3,046         19          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0      2,820          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}         0          0      3,469          0 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}         0          0      3,477          0 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     6,044         45     61,875        197 {txt}{c |}{res}    68,161 
{txt}
{com}. *only 1988, 1998!
. 
. * participate lawful demonstration
. gen demo=pp35
{txt}(55,509 missing values generated)

{com}. label variable demo "Participated lawful demonstration"
{txt}
{com}. label values demo binary
{txt}
{com}. tab year demo , missing

{txt}ERHEBUNGSJ {c |}      Participated lawful demonstration
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0      3,052          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     2,575        490          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}     1,749        906          0        165 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}     2,732        731          0          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}     2,464      1,005          0          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     9,520      3,132     55,161        348 {txt}{c |}{res}    68,161 
{txt}
{com}. *not in 1988
. 
. * abstain from elections out of protest
. gen abstain=pp36
{txt}(55,509 missing values generated)

{com}. fre pp36
{res}
{txt}pp36 {hline 2} HABE MICH NICHT AN WAHLEN BETEILIGT
{txt}{hline 24}{hline 1}{c TT}{hline 44}
{txt}        {txt}                 {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 24}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT {c |}{res}      11604      17.02      91.72      91.72
{txt}        1  GENANNT       {c |}{res}       1048       1.54       8.28     100.00
{txt}        Total            {c |}{res}      12652      18.56     100.00           
{txt}Missing .a NICHT ERHOBEN {c |}{res}      55161      80.93                      
{txt}        .e KEINE ANGABE  {c |}{res}        348       0.51                      
{txt}        Total            {c |}{res}      55509      81.44                      
{txt}Total                    {c |}{res}      68161     100.00                      
{txt}{hline 24}{hline 1}{c BT}{hline 44}

{com}. label variable abstain "Abstained out of protest"
{txt}
{com}. label values abstain binary
{txt}
{com}. tab year abstain , missing

{txt}ERHEBUNGSJ {c |}          Abstained out of protest
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0      3,052          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     2,851        214          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}     2,321        334          0        165 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}     3,179        284          0          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}     3,253        216          0          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}    11,604      1,048     55,161        348 {txt}{c |}{res}    68,161 
{txt}
{com}. *not in 1988
. 
. * protest voting (vote for another party than the preferred one out of protest)
. gen protvote=pp37
{txt}(55,509 missing values generated)

{com}. label variable protvote "Protest voted"
{txt}
{com}. label values protvote binary
{txt}
{com}. tab year protvote , missing

{txt}ERHEBUNGSJ {c |}                Protest voted
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0      3,052          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     2,802        263          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}     2,162        493          0        165 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}     2,971        492          0          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}     2,863        606          0          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}    10,798      1,854     55,161        348 {txt}{c |}{res}    68,161 
{txt}
{com}. *not in 1988
. 
. * participate in petition (Unterschriftensammlung)
. gen petition=pp38
{txt}(55,509 missing values generated)

{com}. label variable petition "Signed petition"
{txt}
{com}. label values petition binary
{txt}
{com}. tab year petition , missing

{txt}ERHEBUNGSJ {c |}               Signed petition
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0      3,052          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     1,918      1,147          0        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}       894      1,761          0        165 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}     1,805      1,658          0          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}     1,447      2,022          0          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     6,064      6,588     55,161        348 {txt}{c |}{res}    68,161 
{txt}
{com}. *not in 1988
. 
. * political consumerism
. gen plconsm=pp40
{txt}(61,229 missing values generated)

{com}. label variable plconsm "Boy-/buycotted"
{txt}
{com}. label values plconsm binary
{txt}
{com}. tab year plconsm , missing

{txt}ERHEBUNGSJ {c |}               Boy-/buycotted
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0      3,052          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0          0      3,234          0 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0      2,820          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}     2,541        922          0          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}     2,168      1,301          0          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     4,709      2,223     61,215         14 {txt}{c |}{res}    68,161 
{txt}
{com}. *only 2008, 2018
. 
. * online protest
. gen onlinep=pp41
{txt}(61,229 missing values generated)

{com}. label variable onlinep "Protested online"
{txt}
{com}. label values onlinep binary
{txt}
{com}. tab year onlinep , missing

{txt}ERHEBUNGSJ {c |}              Protested online
       AHR {c |}         0          1         .a         .e {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0      3,052          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0          0      3,234          0 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0      2,820          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}     3,204        259          0          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}     2,809        660          0          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     6,013        919     61,215         14 {txt}{c |}{res}    68,161 
{txt}
{com}. *only 2008, 2018
. 
. * indices of participation (total, conventional, unconventional)
. * based on variables asked in 1998, 2008, 2018
. * divided by number of items included, so all indices range from 0-1
. 
. gen part1=(opinion+elect+discuss+initiv+wrkprty+unlawdem+demo+abstain+protvote+petition)/10
{txt}(58,164 missing values generated)

{com}. label variable part1 "Participation Index"
{txt}
{com}. tab year part1 , missing

{txt}ERHEBUNGSJ {c |}             Participation Index
       AHR {c |}         0         .1         .2         .3 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       240        582        872        580 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       221        528        819        755 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}        92        357        690        824 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       553      1,467      2,381      2,159 {txt}{c |}{res}    68,161 


{txt}ERHEBUNGSJ {c |}             Participation Index
       AHR {c |}        .4         .5         .6         .7 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       389        216        112         50 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       498        363        180         67 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       675        443        263         93 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     1,562      1,022        555        210 {txt}{c |}{res}    68,161 


{txt}ERHEBUNGSJ {c |}             Participation Index
       AHR {c |}        .8         .9          1          . {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0      2,955 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0      2,991 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0      3,004 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0      3,095 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0      3,052 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0      3,051 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0      3,058 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0      3,548 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0      3,450 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0      3,518 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}        18          5          1        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0      3,804 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0      2,820 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0      2,946 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0      3,421 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}        21          9          2          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0      2,827 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0      3,480 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0      3,471 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0      3,490 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}        27          3          2          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}        66         17          5     58,164 {txt}{c |}{res}    68,161 
{txt}
{com}. *only available for 1998, 2008, 2018 because not all forms of participation were asked in 1988
. sum part1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}part1 {c |}{res}      9,997    .2960388    .1724361          0          1
{txt}
{com}. 
. gen convp1=(elect+wrkprty+abstain+protvote)/4
{txt}(55,509 missing values generated)

{com}. label variable convp1 "Conventional Participation Index"
{txt}
{com}. tab year convp1 , missing

{txt}ERHEBUNGSJ {c |}      Conventional Participation Index
       AHR {c |}         0        .25         .5        .75 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       537      2,086        362         72 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}       330      1,532        606        171 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       586      2,200        571         99 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       339      2,297        724        103 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     1,792      8,115      2,263        445 {txt}{c |}{res}    68,161 


           {txt}{c |}     Conventional
ERHEBUNGSJ {c |}  Participation Index
       AHR {c |}         1          . {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      1980 {c |}{res}         0      2,955 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0      2,991 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0      3,004 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0      3,095 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0      3,052 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0      3,051 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0      3,058 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0      3,548 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0      3,450 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0      3,518 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         8        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0      3,804 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}        16        165 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0      2,946 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0      3,421 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}         7          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0      2,827 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0      3,480 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0      3,471 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0      3,490 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}         6          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}        37     55,509 {txt}{c |}{res}    68,161 
{txt}
{com}. *years 1998, 2002, 2008, 2018
. sum convp1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}convp1 {c |}{res}     12,652    .2790863    .1721215          0          1
{txt}
{com}. 
. 
. gen unconvp=(opinion+discuss+initiv+unlawdem+demo+petition)/6
{txt}(58,164 missing values generated)

{com}. label variable unconvp "Unconventional Participation Index"
{txt}
{com}. tab year unconvp , missing

{txt}ERHEBUNGSJ {c |}     Unconventional Participation Index
       AHR {c |}         0   .1666667   .3333333         .5 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       658      1,050        678        379 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       563      1,031        891        509 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       337        899        944        659 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     1,558      2,980      2,513      1,547 {txt}{c |}{res}    68,161 


{txt}ERHEBUNGSJ {c |}     Unconventional Participation Index
       AHR {c |}  .6666667   .8333333          1          . {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0      2,955 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0      2,991 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0      3,004 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0      3,095 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0      3,052 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0      3,051 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0      3,058 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0      3,548 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0      3,450 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0      3,518 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       194         90         16        169 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0      3,804 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0      2,820 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0      2,946 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0      3,421 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       323        119         27          6 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0      2,827 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0      3,480 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0      3,471 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0      3,490 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       411        184         35          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       928        393         78     58,164 {txt}{c |}{res}    68,161 
{txt}
{com}. *years 1998, 2008, 2018
. sum unconvp

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}unconvp {c |}{res}      9,997     .313294    .2304532          0          1
{txt}
{com}. 
. 
. * political efficacy
. 
. *measured by the following single items 
. *available for years 1988, 1998, 2008, 2018
. 
. *politicians don't care about people like me
. fre pe01-pe08
{res}
{txt}pe01 {hline 2} POLITIKER KUEMMERN S.NICHT UM M.GEDANKEN
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   1  STIMME VOLL ZU      {c |}{res}       4417       6.48      34.25      34.25
{txt}        2  STIMME EHER ZU      {c |}{res}       4917       7.21      38.13      72.37
{txt}        3  STIMME EHER NICHT   {c |}{res}       3041       4.46      23.58      95.95
{txt}           ZU                  {c |}{res}                                            
{txt}        4  STIMME GAR NICHT ZU {c |}{res}        522       0.77       4.05     100.00
{txt}        Total                  {c |}{res}      12897      18.92     100.00           
{txt}Missing .a NICHT ERHOBEN       {c |}{res}      54929      80.59                      
{txt}        .d WEISS NICHT         {c |}{res}        314       0.46                      
{txt}        .e KEINE ANGABE        {c |}{res}         21       0.03                      
{txt}        Total                  {c |}{res}      55264      81.08                      
{txt}Total                          {c |}{res}      68161     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}
{res}
{txt}pe02 {hline 2} KANN IN EINER POLIT. GRUPPE AKTIV WERDEN
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   1  STIMME VOLL ZU      {c |}{res}       1214       1.78       9.53       9.53
{txt}        2  STIMME EHER ZU      {c |}{res}       2813       4.13      22.08      31.61
{txt}        3  STIMME EHER NICHT   {c |}{res}       4065       5.96      31.91      63.52
{txt}           ZU                  {c |}{res}                                            
{txt}        4  STIMME GAR NICHT ZU {c |}{res}       4648       6.82      36.48     100.00
{txt}        Total                  {c |}{res}      12740      18.69     100.00           
{txt}Missing .a NICHT ERHOBEN       {c |}{res}      54929      80.59                      
{txt}        .d WEISS NICHT         {c |}{res}        456       0.67                      
{txt}        .e KEINE ANGABE        {c |}{res}         36       0.05                      
{txt}        Total                  {c |}{res}      55421      81.31                      
{txt}Total                          {c |}{res}      68161     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}
{res}
{txt}pe03 {hline 2} HABE KEINEN EINFLUSS AUF REGIERUNG
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   1  STIMME VOLL ZU      {c |}{res}       1824       2.68      29.96      29.96
{txt}        2  STIMME EHER ZU      {c |}{res}       2073       3.04      34.05      64.01
{txt}        3  STIMME EHER NICHT   {c |}{res}       1551       2.28      25.48      89.49
{txt}           ZU                  {c |}{res}                                            
{txt}        4  STIMME GAR NICHT ZU {c |}{res}        640       0.94      10.51     100.00
{txt}        Total                  {c |}{res}       6088       8.93     100.00           
{txt}Missing .a NICHT ERHOBEN       {c |}{res}      61875      90.78                      
{txt}        .d WEISS NICHT         {c |}{res}        190       0.28                      
{txt}        .e KEINE ANGABE        {c |}{res}          8       0.01                      
{txt}        Total                  {c |}{res}      62073      91.07                      
{txt}Total                          {c |}{res}      68161     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}
{res}
{txt}pe04 {hline 2} POLITIK IST ZU KOMPLEX FUER MICH
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   1  STIMME VOLL ZU      {c |}{res}       1720       2.52      13.28      13.28
{txt}        2  STIMME EHER ZU      {c |}{res}       3592       5.27      27.73      41.00
{txt}        3  STIMME EHER NICHT   {c |}{res}       4502       6.60      34.75      75.75
{txt}           ZU                  {c |}{res}                                            
{txt}        4  STIMME GAR NICHT ZU {c |}{res}       3141       4.61      24.25     100.00
{txt}        Total                  {c |}{res}      12955      19.01     100.00           
{txt}Missing .a NICHT ERHOBEN       {c |}{res}      54929      80.59                      
{txt}        .d WEISS NICHT         {c |}{res}        254       0.37                      
{txt}        .e KEINE ANGABE        {c |}{res}         23       0.03                      
{txt}        Total                  {c |}{res}      55206      80.99                      
{txt}Total                          {c |}{res}      68161     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}
{res}
{txt}pe05 {hline 2} POLITIKER VERTRETEN INTERESSEN D. BEV.
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   1  STIMME VOLL ZU      {c |}{res}        513       0.75       5.19       5.19
{txt}        2  STIMME EHER ZU      {c |}{res}       3657       5.37      36.97      42.16
{txt}        3  STIMME EHER NICHT   {c |}{res}       4022       5.90      40.66      82.81
{txt}           ZU                  {c |}{res}                                            
{txt}        4  STIMME GAR NICHT ZU {c |}{res}       1700       2.49      17.19     100.00
{txt}        Total                  {c |}{res}       9892      14.51     100.00           
{txt}Missing .a NICHT ERHOBEN       {c |}{res}      57981      85.06                      
{txt}        .d WEISS NICHT         {c |}{res}        270       0.40                      
{txt}        .e KEINE ANGABE        {c |}{res}         18       0.03                      
{txt}        Total                  {c |}{res}      58269      85.49                      
{txt}Total                          {c |}{res}      68161     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}
{res}
{txt}pe06 {hline 2} WEISS WENIG UEBER POLITIK
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   1  STIMME VOLL ZU      {c |}{res}        693       1.02      10.03      10.03
{txt}        2  STIMME EHER ZU      {c |}{res}       1644       2.41      23.78      33.81
{txt}        3  STIMME EHER NICHT   {c |}{res}       2739       4.02      39.63      73.44
{txt}           ZU                  {c |}{res}                                            
{txt}        4  STIMME GAR NICHT ZU {c |}{res}       1836       2.69      26.56     100.00
{txt}        Total                  {c |}{res}       6912      10.14     100.00           
{txt}Missing .a NICHT ERHOBEN       {c |}{res}      61215      89.81                      
{txt}        .d WEISS NICHT         {c |}{res}         22       0.03                      
{txt}        .e KEINE ANGABE        {c |}{res}         12       0.02                      
{txt}        Total                  {c |}{res}      61249      89.86                      
{txt}Total                          {c |}{res}      68161     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}
{res}
{txt}pe07 {hline 2} MEISTEN FAEHIG ZU ARBEIT IN POL. GRUPPE
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   1  STIMME VOLL ZU      {c |}{res}        610       0.89       9.26       9.26
{txt}        2  STIMME EHER ZU      {c |}{res}       2523       3.70      38.31      47.58
{txt}        3  STIMME EHER NICHT   {c |}{res}       2713       3.98      41.20      88.78
{txt}           ZU                  {c |}{res}                                            
{txt}        4  STIMME GAR NICHT ZU {c |}{res}        739       1.08      11.22     100.00
{txt}        Total                  {c |}{res}       6585       9.66     100.00           
{txt}Missing .a NICHT ERHOBEN       {c |}{res}      61215      89.81                      
{txt}        .d WEISS NICHT         {c |}{res}        346       0.51                      
{txt}        .e KEINE ANGABE        {c |}{res}         15       0.02                      
{txt}        Total                  {c |}{res}      61576      90.34                      
{txt}Total                          {c |}{res}      68161     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}
{res}
{txt}pe08 {hline 2} DURCHSCHNITT: WENIG POLIT. VERSTAENDNIS
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   1  STIMME VOLL ZU      {c |}{res}       1156       1.70      17.30      17.30
{txt}        2  STIMME EHER ZU      {c |}{res}       3237       4.75      48.44      65.74
{txt}        3  STIMME EHER NICHT   {c |}{res}       1998       2.93      29.90      95.65
{txt}           ZU                  {c |}{res}                                            
{txt}        4  STIMME GAR NICHT ZU {c |}{res}        291       0.43       4.35     100.00
{txt}        Total                  {c |}{res}       6682       9.80     100.00           
{txt}Missing .a NICHT ERHOBEN       {c |}{res}      61215      89.81                      
{txt}        .d WEISS NICHT         {c |}{res}        244       0.36                      
{txt}        .e KEINE ANGABE        {c |}{res}         20       0.03                      
{txt}        Total                  {c |}{res}      61479      90.20                      
{txt}Total                          {c |}{res}      68161     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. 
. gen polcare=pe01
{txt}(55,264 missing values generated)

{com}. label variable polcare "Politicians don't care about people like me (higher values = disagree)"
{txt}
{com}. label define agree4 1 "fully agree" 2 "rather agree" 3 "rather disagree" 4 "fully disagree"
{txt}
{com}. label values polcare agree4
{txt}
{com}. tab year polcare , missing

           {txt}{c |} Politicians don't care about people like me
ERHEBUNGSJ {c |}         (higher values = disagree)
       AHR {c |} fully agr  rather ag  rather di  fully dis {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}       809      1,196        767        151 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     1,162      1,179        671        153 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}     1,428      1,198        665        107 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}     1,018      1,344        938        111 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     4,417      4,917      3,041        522 {txt}{c |}{res}    68,161 


           {txt}{c |}   Politicians don't care about
           {c |} people like me (higher values =
ERHEBUNGSJ {c |}            disagree)
       AHR {c |}        .a         .d         .e {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
      1980 {c |}{res}     2,955          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}     2,991          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}     3,004          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}     3,095          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0        125          4 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}     3,051          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}     3,058          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}     3,548          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}     3,450          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}     3,518          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0         66          3 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}     3,804          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}     2,820          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}     2,946          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}     3,421          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}         0         66          5 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}     2,827          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}     3,480          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}     3,471          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}     3,490          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}         0         57          9 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}    54,929        314         21 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. replace polcare = (polcare - 1) / 3 // 0-1 scale
{txt}(68,161 real changes made, 55,264 to missing)

{com}. 
. 
. *can assume active role in pol group
. gen peactgrp=pe02
{txt}(55,421 missing values generated)

{com}. label variable peactgrp "Can assume active role in pol group"
{txt}
{com}. label values peactgrp agree4
{txt}
{com}. tab year peactgrp , missing

{txt}ERHEBUNGSJ {c |}     Can assume active role in pol group
       AHR {c |} fully agr  rather ag  rather di  fully dis {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}       255        644        826      1,124 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       225        632        854      1,330 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       366        697      1,073      1,276 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       368        840      1,312        918 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     1,214      2,813      4,065      4,648 {txt}{c |}{res}    68,161 


           {txt}{c |}  Can assume active role in pol
ERHEBUNGSJ {c |}              group
       AHR {c |}        .a         .d         .e {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
      1980 {c |}{res}     2,955          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}     2,991          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}     3,004          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}     3,095          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0        198          5 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}     3,051          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}     3,058          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}     3,548          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}     3,450          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}     3,518          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0        185          8 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}     3,804          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}     2,820          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}     2,946          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}     3,421          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}         0         42         15 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}     2,827          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}     3,480          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}     3,471          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}     3,490          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}         0         31          8 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}    54,929        456         36 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. 
. *politics is too complex
. gen pecomplx=pe04
{txt}(55,206 missing values generated)

{com}. label variable pecomplx "Politics is too complex (higher values = disagree)"
{txt}
{com}. label values pecomplx agree4
{txt}
{com}. tab year pecomplx , missing

           {txt}{c |}  Politics is too complex (higher values =
ERHEBUNGSJ {c |}                  disagree)
       AHR {c |} fully agr  rather ag  rather di  fully dis {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}       328        856        931        802 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       482        906      1,064        705 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       554        897      1,171        809 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       356        933      1,336        825 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     1,720      3,592      4,502      3,141 {txt}{c |}{res}    68,161 


           {txt}{c |} Politics is too complex (higher
ERHEBUNGSJ {c |}        values = disagree)
       AHR {c |}        .a         .d         .e {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
      1980 {c |}{res}     2,955          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}     2,991          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}     3,004          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}     3,095          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0        132          3 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}     3,051          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}     3,058          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}     3,548          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}     3,450          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}     3,518          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0         71          6 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}     3,804          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}     2,820          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}     2,946          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}     3,421          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}         0         29          9 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}     2,827          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}     3,480          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}     3,471          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}     3,490          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}         0         22          5 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}    54,929        254         23 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. replace pecomplx = (pecomplx - 1) / 3 // 0-1 scale
{txt}(68,161 real changes made, 55,206 to missing)

{com}. 
. 
. *politicians try to represent interests of the people
. gen peprpres=pe05
{txt}(58,269 missing values generated)

{com}. label variable peprpres "Politicians try to represent interests of people"
{txt}
{com}. label values peprpres agree4
{txt}
{com}. tab year peprpres , missing

           {txt}{c |}  Politicians try to represent interests of
ERHEBUNGSJ {c |}                   people
       AHR {c |} fully agr  rather ag  rather di  fully dis {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       124      1,001      1,243        715 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       219      1,183      1,409        590 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       170      1,473      1,370        395 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       513      3,657      4,022      1,700 {txt}{c |}{res}    68,161 


           {txt}{c |}   Politicians try to represent
ERHEBUNGSJ {c |}       interests of people
       AHR {c |}        .a         .d         .e {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
      1980 {c |}{res}     2,955          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}     2,991          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}     3,004          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}     3,095          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}     3,052          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}     3,051          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}     3,058          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}     3,548          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}     3,450          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}     3,518          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0        148          3 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}     3,804          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}     2,820          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}     2,946          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}     3,421          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}         0         63          5 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}     2,827          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}     3,480          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}     3,471          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}     3,490          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}         0         59         10 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}    57,981        270         18 {txt}{c |}{res}    68,161 
{txt}
{com}. *not 1988
. 
. *I know rather little about politics
. gen peknowl=pe06
{txt}(61,249 missing values generated)

{com}. label variable peknowl "Have little political knowledge (higher values = disagree)"
{txt}
{com}. label values peknowl agree4
{txt}
{com}. tab year peknowl , missing

           {txt}{c |}   Have little political knowledge (higher
ERHEBUNGSJ {c |}             values = disagree)
       AHR {c |} fully agr  rather ag  rather di  fully dis {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       440        851      1,259        896 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       253        793      1,480        940 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       693      1,644      2,739      1,836 {txt}{c |}{res}    68,161 


           {txt}{c |} Have little political knowledge
ERHEBUNGSJ {c |}    (higher values = disagree)
       AHR {c |}        .a         .d         .e {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
      1980 {c |}{res}     2,955          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}     2,991          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}     3,004          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}     3,095          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}     3,052          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}     3,051          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}     3,058          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}     3,548          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}     3,450          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}     3,518          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     3,234          0          0 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}     3,804          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}     2,820          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}     2,946          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}     3,421          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}         0         14          9 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}     2,827          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}     3,480          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}     3,471          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}     3,490          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}         0          8          3 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}    61,215         22         12 {txt}{c |}{res}    68,161 
{txt}
{com}. *not 1988, 1998
. replace peknowl = (peknowl - 1) / 3 // 0-1 scale
{txt}(68,161 real changes made, 61,249 to missing)

{com}. 
. 
. * indices for political efficacy, internal pol efficacy, external pol efficacy
. * based on the three variables asked the most often, i.e., in 1988, 1998, 2008, 2018 (further variables available but not asked so often)
. * divided by max sum of all constituting items so index ranges from 0-1
. 
. **Final Analyses will be based only on 2008 and 2018 (given availability of most items + bulayouth merge)
. *-> I build new version of peff with 2 extpeff & 3 intpeff items (that are available in 08&18 and are clearly part of either intpeff & extpeff (unclear with pemostgr))
. 
. gen peactgrp_rev=peactgrp 
{txt}(55,421 missing values generated)

{com}. recode peactgrp_rev (1=4) (2=3) (3=2) (4=1)
{txt}(12,740 changes made to {bf:peactgrp_rev})

{com}. label variable peactgrp_rev "Can assume active role in pol group"
{txt}
{com}. 
. replace peactgrp_rev = (peactgrp_rev - 1) / 3 // 0-1 scale
{txt}(68,161 real changes made, 55,421 to missing)

{com}. 
. gen peprpres_rev=peprpres
{txt}(58,269 missing values generated)

{com}. recode peprpres_rev (1=4) (2=3) (3=2) (4=1)
{txt}(9,892 changes made to {bf:peprpres_rev})

{com}. label variable peprpres_rev "Politicians try to represent interests of people"
{txt}
{com}. 
. replace peprpres_rev = (peprpres_rev - 1) / 3 // 0-1 scale
{txt}(68,161 real changes made, 58,269 to missing)

{com}. 
. 
. gen intpeff=(peactgrp_rev+pecomplx + peknowl)/3
{txt}(61,378 missing values generated)

{com}. label variable intpeff "Internal Political Efficacy Index"
{txt}
{com}. tab year intpeff , missing

{txt}ERHEBUNGSJ {c |}      Internal Political Efficacy Index
       AHR {c |}         0   .1111111   .2222222   .3333333 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       217        202        308        472 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       103        137        258        412 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       320        339        566        884 {txt}{c |}{res}    68,161 


{txt}ERHEBUNGSJ {c |}      Internal Political Efficacy Index
       AHR {c |}  .4444444   .5555556   .6666667   .7777778 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       488        520        469        285 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       545        635        513        362 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     1,033      1,155        982        647 {txt}{c |}{res}    68,161 


           {txt}{c |}   Internal Political Efficacy
ERHEBUNGSJ {c |}              Index
       AHR {c |}  .8888889          1          . {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
      1980 {c |}{res}         0          0      2,955 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0      2,991 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0      3,004 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0      3,095 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0      3,052 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0      3,051 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0      3,058 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0      3,548 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0      3,450 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0      3,518 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0          0      3,234 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0      3,804 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0      2,820 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0      2,946 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0      3,421 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       229        187         92 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0      2,827 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0      3,480 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0      3,471 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0      3,490 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       263        178         71 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}       492        365     61,378 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. gen extpeff=(polcare+peprpres_rev)/2
{txt}(58,394 missing values generated)

{com}. label variable extpeff "External Political Efficacy Index"
{txt}
{com}. tab year extpeff , missing

{txt}ERHEBUNGSJ {c |}      External Political Efficacy Index
       AHR {c |}         0   .1666667   .3333333         .5 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       510        556        786        630 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       468        679        840        813 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       298        559        839        835 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     1,276      1,794      2,465      2,278 {txt}{c |}{res}    68,161 


{txt}ERHEBUNGSJ {c |}      External Political Efficacy Index
       AHR {c |}  .6666667   .8333334          1          . {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0      2,955 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0      2,991 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0      3,004 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0      3,095 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0      3,052 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0      3,051 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0      3,058 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0      3,548 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0      3,450 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0      3,518 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       443         92         29        188 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0      3,804 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0      2,820 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0      2,946 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0      3,421 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       435         90         28        116 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0      2,827 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0      3,480 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0      3,471 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0      3,490 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       695        110         32        109 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     1,573        292         89     58,394 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. 
. gen peff=(peactgrp_rev+pecomplx + peknowl +polcare+peprpres_rev)/5 
{txt}(61,547 missing values generated)

{com}. label variable peff "Political Efficacy Index"
{txt}
{com}. tab year peff , missing

{txt}ERHEBUNGSJ {c |}          Political Efficacy Index
       AHR {c |}         0   .0666667   .1333333         .2 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}        46         93        151        205 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}        11         34         98        141 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}        57        127        249        346 {txt}{c |}{res}    68,161 


{txt}ERHEBUNGSJ {c |}          Political Efficacy Index
       AHR {c |}  .2666667   .3333333         .4   .4666667 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       284        354        420        451 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       215        320        456        480 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       499        674        876        931 {txt}{c |}{res}    68,161 


{txt}ERHEBUNGSJ {c |}          Political Efficacy Index
       AHR {c |}  .5333334         .6   .6666667   .7333333 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       384        356        251        148 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       450        376        306        194 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       834        732        557        342 {txt}{c |}{res}    68,161 


{txt}ERHEBUNGSJ {c |}          Political Efficacy Index
       AHR {c |}        .8   .8666667   .9333333          1 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}        84         34         28          4 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}         0          0          0          0 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}         0          0          0          0 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       136         74         23          7 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       220        108         51         11 {txt}{c |}{res}    68,161 


           {txt}{c |} Political
           {c |}  Efficacy
ERHEBUNGSJ {c |}   Index
       AHR {c |}         . {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
      1980 {c |}{res}     2,955 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}     2,991 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}     3,004 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}     3,095 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}     3,052 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}     3,051 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}     3,058 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}     3,548 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}     3,450 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}     3,518 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}     3,234 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}     3,804 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}     2,820 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}     2,946 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}     3,421 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       176 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}     2,827 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}     3,480 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}     3,471 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}     3,490 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       156 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}    61,547 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. *final check
. pwcorr peactgrp_rev pecomplx peknowl polcare peprpres_rev

             {txt}{c |} peactg~v pecomplx  peknowl  polcare peprpr~v
{hline 13}{c +}{hline 45}
peactgrp_rev {c |} {res}  1.0000 
    {txt}pecomplx {c |} {res}  0.3708   1.0000 
     {txt}peknowl {c |} {res}  0.4106   0.5879   1.0000 
     {txt}polcare {c |} {res}  0.0923   0.2016   0.1049   1.0000 
{txt}peprpres_rev {c |} {res}  0.0919   0.1189   0.0317   0.3954   1.0000 
{txt}
{com}. 
. 
. ** INDEPENDENT VARIABLE: EDUCATION 
. 
. *highest edu qualification
. fre de05-de15
{res}
{txt}de05 {hline 2} BEFR.: KEIN BERUFL. AUSBILDUNGSABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      55923      82.05      83.28      83.28
{txt}        1  GENANNT           {c |}{res}      11226      16.47      16.72     100.00
{txt}        Total                {c |}{res}      67149      98.52     100.00           
{txt}Missing .e KEINE ANGABE      {c |}{res}        197       0.29                      
{txt}        .f TNZ: FILTER       {c |}{res}        730       1.07                      
{txt}        .k NICHT GENERIERBAR {c |}{res}         85       0.12                      
{txt}        Total                {c |}{res}       1012       1.48                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}de06 {hline 2} BEFR.: BERUFLICH-BETRIEBL. ANLERNZEIT
{txt}{hline 24}{hline 1}{c TT}{hline 44}
{txt}        {txt}                 {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 24}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT {c |}{res}      56126      82.34      96.30      96.30
{txt}        1  GENANNT       {c |}{res}       2158       3.17       3.70     100.00
{txt}        Total            {c |}{res}      58284      85.51     100.00           
{txt}Missing .a NICHT ERHOBEN {c |}{res}       8950      13.13                      
{txt}        .e KEINE ANGABE  {c |}{res}        197       0.29                      
{txt}        .f TNZ: FILTER   {c |}{res}        730       1.07                      
{txt}        Total            {c |}{res}       9877      14.49                      
{txt}Total                    {c |}{res}      68161     100.00                      
{txt}{hline 24}{hline 1}{c BT}{hline 44}
{res}
{txt}de07 {hline 2} BEFR.: TEILFACHARBEITERABSCHLUSS
{txt}{hline 24}{hline 1}{c TT}{hline 44}
{txt}        {txt}                 {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 24}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT {c |}{res}      47312      69.41      98.61      98.61
{txt}        1  GENANNT       {c |}{res}        667       0.98       1.39     100.00
{txt}        Total            {c |}{res}      47979      70.39     100.00           
{txt}Missing .a NICHT ERHOBEN {c |}{res}      18148      26.63                      
{txt}        .e KEINE ANGABE  {c |}{res}        143       0.21                      
{txt}        .f TNZ: FILTER   {c |}{res}       1891       2.77                      
{txt}        Total            {c |}{res}      20182      29.61                      
{txt}Total                    {c |}{res}      68161     100.00                      
{txt}{hline 24}{hline 1}{c BT}{hline 44}
{res}
{txt}de08 {hline 2} BEFR.: GEWERBLICHE, LANDWIRTSCH. LEHRE
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      45998      67.48      68.50      68.50
{txt}        1  GENANNT           {c |}{res}      21151      31.03      31.50     100.00
{txt}        Total                {c |}{res}      67149      98.52     100.00           
{txt}Missing .e KEINE ANGABE      {c |}{res}        197       0.29                      
{txt}        .f TNZ: FILTER       {c |}{res}        730       1.07                      
{txt}        .k NICHT GENERIERBAR {c |}{res}         85       0.12                      
{txt}        Total                {c |}{res}       1012       1.48                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}de09 {hline 2} BEFR.: KAUFMAENNISCHE LEHRE
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      53537      78.54      79.73      79.73
{txt}        1  GENANNT           {c |}{res}      13612      19.97      20.27     100.00
{txt}        Total                {c |}{res}      67149      98.52     100.00           
{txt}Missing .e KEINE ANGABE      {c |}{res}        197       0.29                      
{txt}        .f TNZ: FILTER       {c |}{res}        730       1.07                      
{txt}        .k NICHT GENERIERBAR {c |}{res}         85       0.12                      
{txt}        Total                {c |}{res}       1012       1.48                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}de10 {hline 2} BEFR.: BERUFL. PRAKTIKUM, VOLONTARIAT
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      66163      97.07      98.53      98.53
{txt}        1  GENANNT           {c |}{res}        986       1.45       1.47     100.00
{txt}        Total                {c |}{res}      67149      98.52     100.00           
{txt}Missing .e KEINE ANGABE      {c |}{res}        197       0.29                      
{txt}        .f TNZ: FILTER       {c |}{res}        730       1.07                      
{txt}        .k NICHT GENERIERBAR {c |}{res}         85       0.12                      
{txt}        Total                {c |}{res}       1012       1.48                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}de11 {hline 2} BEFR.: FACHSCHULABSCHLUSS
{txt}{hline 24}{hline 1}{c TT}{hline 44}
{txt}        {txt}                 {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 24}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT {c |}{res}      44562      65.38      92.88      92.88
{txt}        1  GENANNT       {c |}{res}       3417       5.01       7.12     100.00
{txt}        Total            {c |}{res}      47979      70.39     100.00           
{txt}Missing .a NICHT ERHOBEN {c |}{res}      18148      26.63                      
{txt}        .e KEINE ANGABE  {c |}{res}        143       0.21                      
{txt}        .f TNZ: FILTER   {c |}{res}       1891       2.77                      
{txt}        Total            {c |}{res}      20182      29.61                      
{txt}Total                    {c |}{res}      68161     100.00                      
{txt}{hline 24}{hline 1}{c BT}{hline 44}
{res}
{txt}de12 {hline 2} BEFR.: BERUFSFACHSCHULABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      61776      90.63      94.13      94.13
{txt}        1  GENANNT           {c |}{res}       3850       5.65       5.87     100.00
{txt}        Total                {c |}{res}      65626      96.28     100.00           
{txt}Missing .e KEINE ANGABE      {c |}{res}        178       0.26                      
{txt}        .f TNZ: FILTER       {c |}{res}       2272       3.33                      
{txt}        .k NICHT GENERIERBAR {c |}{res}         85       0.12                      
{txt}        Total                {c |}{res}       2535       3.72                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}de13 {hline 2} BEFR.: MEISTER, TECHNIKERABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      62933      92.33      93.72      93.72
{txt}        1  GENANNT           {c |}{res}       4216       6.19       6.28     100.00
{txt}        Total                {c |}{res}      67149      98.52     100.00           
{txt}Missing .e KEINE ANGABE      {c |}{res}        197       0.29                      
{txt}        .f TNZ: FILTER       {c |}{res}        730       1.07                      
{txt}        .k NICHT GENERIERBAR {c |}{res}         85       0.12                      
{txt}        Total                {c |}{res}       1012       1.48                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}de14 {hline 2} BEFR.: FACHHOCHSCHULABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      62054      91.04      94.56      94.56
{txt}        1  GENANNT           {c |}{res}       3572       5.24       5.44     100.00
{txt}        Total                {c |}{res}      65626      96.28     100.00           
{txt}Missing .e KEINE ANGABE      {c |}{res}        178       0.26                      
{txt}        .f TNZ: FILTER       {c |}{res}       2272       3.33                      
{txt}        .k NICHT GENERIERBAR {c |}{res}         85       0.12                      
{txt}        Total                {c |}{res}       2535       3.72                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}de15 {hline 2} BEFR.: HOCHSCHULABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      60266      88.42      89.75      89.75
{txt}        1  GENANNT           {c |}{res}       6883      10.10      10.25     100.00
{txt}        Total                {c |}{res}      67149      98.52     100.00           
{txt}Missing .e KEINE ANGABE      {c |}{res}        197       0.29                      
{txt}        .f TNZ: FILTER       {c |}{res}        730       1.07                      
{txt}        .k NICHT GENERIERBAR {c |}{res}         85       0.12                      
{txt}        Total                {c |}{res}       1012       1.48                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. gen education=. 
{txt}(68,161 missing values generated)

{com}. label variable education "highest professional qualification"
{txt}
{com}. replace education=1 if de05==1 // kein beruflicher Abschluss
{txt}(11,226 real changes made)

{com}. replace education=2 if de06==1 // Anlernzeit
{txt}(2,158 real changes made)

{com}. replace education=2 if de07==1 // Teilfacharbeiterabschluss
{txt}(651 real changes made)

{com}. replace education=2 if de10==1 // Gewerbliche Lehre
{txt}(948 real changes made)

{com}. replace education=3 if de08==1 // Kaufmännische Lehre
{txt}(21,151 real changes made)

{com}. replace education=3 if de09==1 // Praktikum
{txt}(13,083 real changes made)

{com}. replace education=4 if de11==1 // Fachschulabschluss
{txt}(3,417 real changes made)

{com}. replace education=4 if de12==1 // Berufsfachschulabschluss
{txt}(3,671 real changes made)

{com}. replace education=5 if de13==1 // Meister
{txt}(4,216 real changes made)

{com}. replace education=6 if de14==1 // Fachhochschulabschluss
{txt}(3,572 real changes made)

{com}. replace education=7 if de15==1 // Hochschulabschluss
{txt}(6,883 real changes made)

{com}. label define edu1 1 "no qualification" 2 "basic VET" 3 "vocational qualification" 4 "vocational school qualification" 5 "higher vocational qualification (Meister)" 6 "higher education FH" 7 "higher education Uni"
{txt}
{com}. label values education edu1
{txt}
{com}. 
. tab year education , missing

{txt}ERHEBUNGSJ {c |}     highest professional qualification
       AHR {c |} no qualif  basic VET  vocationa  vocationa {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}       823         79      1,459        180 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}       847         64      1,521        155 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}       827         72      1,404        149 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}       623        123      1,275        145 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}       577        152      1,451        152 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}       565        252      1,273        228 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}       424        193      1,303        392 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}       543        204      1,473        495 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}       536        231      1,479        428 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}       525        213      1,548        399 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       424        241      1,637        305 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}       585        220      1,777        373 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}       361        117      1,193        372 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}       501        144      1,398        260 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}       483        191      1,628        331 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       553        131      1,554        315 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}       403        138      1,222        289 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}       472        109      1,539        362 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}       434         74      1,483        328 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}       361         63      1,448        404 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       359         59      1,410        333 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}    11,226      3,070     30,475      6,395 {txt}{c |}{res}    68,161 


{txt}ERHEBUNGSJ {c |}     highest professional qualification
       AHR {c |} higher vo  higher ed  higher ed          . {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1980 {c |}{res}       145         89        143         37 {txt}{c |}{res}     2,955 
{txt}      1982 {c |}{res}       135        101        151         17 {txt}{c |}{res}     2,991 
{txt}      1984 {c |}{res}       169        123        229         31 {txt}{c |}{res}     3,004 
{txt}      1986 {c |}{res}       177        140        178        434 {txt}{c |}{res}     3,095 
{txt}      1988 {c |}{res}       112         87        200        321 {txt}{c |}{res}     3,052 
{txt}      1990 {c |}{res}       168        149        271        145 {txt}{c |}{res}     3,051 
{txt}      1991 {c |}{res}       231         85        285        145 {txt}{c |}{res}     3,058 
{txt}      1992 {c |}{res}       211        158        296        168 {txt}{c |}{res}     3,548 
{txt}      1994 {c |}{res}       214        153        273        136 {txt}{c |}{res}     3,450 
{txt}      1996 {c |}{res}       246        160        287        140 {txt}{c |}{res}     3,518 
{txt}      1998 {c |}{res}       157        144        260         66 {txt}{c |}{res}     3,234 
{txt}      2000 {c |}{res}       208        205        321        115 {txt}{c |}{res}     3,804 
{txt}      2002 {c |}{res}       209        166        317         85 {txt}{c |}{res}     2,820 
{txt}      2004 {c |}{res}       158        127        264         94 {txt}{c |}{res}     2,946 
{txt}      2006 {c |}{res}       181        189        332         86 {txt}{c |}{res}     3,421 
{txt}      2008 {c |}{res}       203        191        416        106 {txt}{c |}{res}     3,469 
{txt}      2010 {c |}{res}       167        154        389         65 {txt}{c |}{res}     2,827 
{txt}      2012 {c |}{res}       211        222        472         93 {txt}{c |}{res}     3,480 
{txt}      2014 {c |}{res}       230        273        555         94 {txt}{c |}{res}     3,471 
{txt}      2016 {c |}{res}       259        271        578        106 {txt}{c |}{res}     3,490 
{txt}      2018 {c |}{res}       259        261        666        130 {txt}{c |}{res}     3,477 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     4,050      3,448      6,883      2,614 {txt}{c |}{res}    68,161 
{txt}
{com}. tab education iscd975, missing

 {txt}highest professional {c |}   BEFR.: ISCED 1997 - 5 STUFEN
        qualification {c |} BASIC EDU  LOWER SEC  UPPER SEC {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
     no qualification {c |}{res}       837      8,139      2,229 {txt}{c |}{res}    11,226 
{txt}            basic VET {c |}{res}         0      2,211        843 {txt}{c |}{res}     3,070 
{txt}vocational qualificat {c |}{res}         0          0     28,272 {txt}{c |}{res}    30,475 
{txt}vocational school qua {c |}{res}         0          0      2,821 {txt}{c |}{res}     6,395 
{txt}higher vocational qua {c |}{res}         0          0          0 {txt}{c |}{res}     4,050 
{txt}  higher education FH {c |}{res}         0          0          0 {txt}{c |}{res}     3,448 
{txt} higher education Uni {c |}{res}         0          0          0 {txt}{c |}{res}     6,883 
{txt}                    . {c |}{res}         6        262      1,428 {txt}{c |}{res}     2,614 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       843     10,612     35,593 {txt}{c |}{res}    68,161 


 {txt}highest professional {c |}   BEFR.: ISCED 1997 - 5 STUFEN
        qualification {c |} POST SECO  TERTIARY   NICHT GEN {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
     no qualification {c |}{res}         0          0         21 {txt}{c |}{res}    11,226 
{txt}            basic VET {c |}{res}        16          0          0 {txt}{c |}{res}     3,070 
{txt}vocational qualificat {c |}{res}     2,203          0          0 {txt}{c |}{res}    30,475 
{txt}vocational school qua {c |}{res}       531      3,043          0 {txt}{c |}{res}     6,395 
{txt}higher vocational qua {c |}{res}         0      4,050          0 {txt}{c |}{res}     4,050 
{txt}  higher education FH {c |}{res}         0      3,448          0 {txt}{c |}{res}     3,448 
{txt} higher education Uni {c |}{res}         0      6,883          0 {txt}{c |}{res}     6,883 
{txt}                    . {c |}{res}       322          0        596 {txt}{c |}{res}     2,614 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}     3,072     17,424        617 {txt}{c |}{res}    68,161 
{txt}
{com}. tab education iscd11, missing

 {txt}highest professional {c |}        BEFR.: ISCED 2011
        qualification {c |} PRIMARY E  LOWER SEC  UPPER SEC {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
     no qualification {c |}{res}       140        929        554 {txt}{c |}{res}    11,226 
{txt}            basic VET {c |}{res}         0        200        101 {txt}{c |}{res}     3,070 
{txt}vocational qualificat {c |}{res}         0          0      5,210 {txt}{c |}{res}    30,475 
{txt}vocational school qua {c |}{res}         0          0        494 {txt}{c |}{res}     6,395 
{txt}higher vocational qua {c |}{res}         0          0          0 {txt}{c |}{res}     4,050 
{txt}  higher education FH {c |}{res}         0          0          0 {txt}{c |}{res}     3,448 
{txt} higher education Uni {c |}{res}         0          0          0 {txt}{c |}{res}     6,883 
{txt}                    . {c |}{res}         1          4        216 {txt}{c |}{res}     2,614 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       141      1,133      6,575 {txt}{c |}{res}    68,161 


 {txt}highest professional {c |}        BEFR.: ISCED 2011
        qualification {c |} POST SECO  SHORT-CYC  BACHELOR  {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
     no qualification {c |}{res}         0          0          0 {txt}{c |}{res}    11,226 
{txt}            basic VET {c |}{res}         4          0          0 {txt}{c |}{res}     3,070 
{txt}vocational qualificat {c |}{res}       670          0          0 {txt}{c |}{res}    30,475 
{txt}vocational school qua {c |}{res}       157        776          0 {txt}{c |}{res}     6,395 
{txt}higher vocational qua {c |}{res}         0        959          0 {txt}{c |}{res}     4,050 
{txt}  higher education FH {c |}{res}         0          0        261 {txt}{c |}{res}     3,448 
{txt} higher education Uni {c |}{res}         0          0        250 {txt}{c |}{res}     6,883 
{txt}                    . {c |}{res}       104          0          0 {txt}{c |}{res}     2,614 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       935      1,735        511 {txt}{c |}{res}    68,161 


 {txt}highest professional {c |}        BEFR.: ISCED 2011
        qualification {c |} MASTER LE  DOCTORAL   NICHT ERH {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
     no qualification {c |}{res}         0          0      9,600 {txt}{c |}{res}    11,226 
{txt}            basic VET {c |}{res}         0          0      2,765 {txt}{c |}{res}     3,070 
{txt}vocational qualificat {c |}{res}         0          0     24,595 {txt}{c |}{res}    30,475 
{txt}vocational school qua {c |}{res}         0          0      4,968 {txt}{c |}{res}     6,395 
{txt}higher vocational qua {c |}{res}         0          0      3,091 {txt}{c |}{res}     4,050 
{txt}  higher education FH {c |}{res}       763          3      2,421 {txt}{c |}{res}     3,448 
{txt} higher education Uni {c |}{res}     1,777        244      4,612 {txt}{c |}{res}     6,883 
{txt}                    . {c |}{res}         0          0      2,191 {txt}{c |}{res}     2,614 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}     2,540        247     54,243 {txt}{c |}{res}    68,161 


                      {txt}{c |}   BEFR.:
 highest professional {c |} ISCED 2011
        qualification {c |} NICHT GEN {c |}     Total
{hline 22}{c +}{hline 11}{c +}{hline 10}
     no qualification {c |}{res}         3 {txt}{c |}{res}    11,226 
{txt}            basic VET {c |}{res}         0 {txt}{c |}{res}     3,070 
{txt}vocational qualificat {c |}{res}         0 {txt}{c |}{res}    30,475 
{txt}vocational school qua {c |}{res}         0 {txt}{c |}{res}     6,395 
{txt}higher vocational qua {c |}{res}         0 {txt}{c |}{res}     4,050 
{txt}  higher education FH {c |}{res}         0 {txt}{c |}{res}     3,448 
{txt} higher education Uni {c |}{res}         0 {txt}{c |}{res}     6,883 
{txt}                    . {c |}{res}        98 {txt}{c |}{res}     2,614 
{txt}{hline 22}{c +}{hline 11}{c +}{hline 10}
                Total {c |}{res}       101 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. tab de01 de05,m

                     {txt}{c |}       BEFR.: KEIN BERUFL.
  BEFR.: BERUFLICHER {c |}       AUSBILDUNGSABSCHLUSS
AUSBILDUNGSABSCHLUSS {c |} NICHT GEN    GENANNT  KEINE ANG {c |}     Total
{hline 21}{c +}{hline 33}{c +}{hline 10}
      KEIN ABSCHLUSS {c |}{res}         0     11,226          0 {txt}{c |}{res}    11,956 
{txt}          ANLERNZEIT {c |}{res}     1,892          0          0 {txt}{c |}{res}     1,892 
{txt}PRAKTIKUM,VOLONTARI. {c |}{res}       585          0          0 {txt}{c |}{res}       585 
{txt}    TEILFACHARBEITER {c |}{res}       593          0          0 {txt}{c |}{res}       593 
{txt}LEHRE:GEWERBL.,LANDW {c |}{res}    18,056          0          0 {txt}{c |}{res}    18,056 
{txt} LEHRE:KAUFMAENNISCH {c |}{res}    12,419          0          0 {txt}{c |}{res}    12,419 
{txt}    BERUFSFACHSCHULE {c |}{res}     3,352          0          0 {txt}{c |}{res}     3,352 
{txt}          FACHSCHULE {c |}{res}     3,043          0          0 {txt}{c |}{res}     3,043 
{txt}  MEISTER, TECHNIKER {c |}{res}     4,050          0          0 {txt}{c |}{res}     4,050 
{txt}        FH-ABSCHLUSS {c |}{res}     3,448          0          0 {txt}{c |}{res}     3,448 
{txt}  HOCHSCHULABSCHLUSS {c |}{res}     6,883          0          0 {txt}{c |}{res}     6,883 
{txt}   ANDERER ABSCHLUSS {c |}{res}     1,395          0          0 {txt}{c |}{res}     1,395 
{txt}   ANGABE VERWEIGERT {c |}{res}         0          0          0 {txt}{c |}{res}         2 
{txt}        KEINE ANGABE {c |}{res}         0          0          0 {txt}{c |}{res}        83 
{txt}   NICHT GENERIERBAR {c |}{res}       207          0        197 {txt}{c |}{res}       404 
{txt}{hline 21}{c +}{hline 33}{c +}{hline 10}
               Total {c |}{res}    55,923     11,226        197 {txt}{c |}{res}    68,161 


                     {txt}{c |}  BEFR.: KEIN BERUFL.
  BEFR.: BERUFLICHER {c |} AUSBILDUNGSABSCHLUSS
AUSBILDUNGSABSCHLUSS {c |} TNZ: FILT  NICHT GEN {c |}     Total
{hline 21}{c +}{hline 22}{c +}{hline 10}
      KEIN ABSCHLUSS {c |}{res}       730          0 {txt}{c |}{res}    11,956 
{txt}          ANLERNZEIT {c |}{res}         0          0 {txt}{c |}{res}     1,892 
{txt}PRAKTIKUM,VOLONTARI. {c |}{res}         0          0 {txt}{c |}{res}       585 
{txt}    TEILFACHARBEITER {c |}{res}         0          0 {txt}{c |}{res}       593 
{txt}LEHRE:GEWERBL.,LANDW {c |}{res}         0          0 {txt}{c |}{res}    18,056 
{txt} LEHRE:KAUFMAENNISCH {c |}{res}         0          0 {txt}{c |}{res}    12,419 
{txt}    BERUFSFACHSCHULE {c |}{res}         0          0 {txt}{c |}{res}     3,352 
{txt}          FACHSCHULE {c |}{res}         0          0 {txt}{c |}{res}     3,043 
{txt}  MEISTER, TECHNIKER {c |}{res}         0          0 {txt}{c |}{res}     4,050 
{txt}        FH-ABSCHLUSS {c |}{res}         0          0 {txt}{c |}{res}     3,448 
{txt}  HOCHSCHULABSCHLUSS {c |}{res}         0          0 {txt}{c |}{res}     6,883 
{txt}   ANDERER ABSCHLUSS {c |}{res}         0          0 {txt}{c |}{res}     1,395 
{txt}   ANGABE VERWEIGERT {c |}{res}         0          2 {txt}{c |}{res}         2 
{txt}        KEINE ANGABE {c |}{res}         0         83 {txt}{c |}{res}        83 
{txt}   NICHT GENERIERBAR {c |}{res}         0          0 {txt}{c |}{res}       404 
{txt}{hline 21}{c +}{hline 22}{c +}{hline 10}
               Total {c |}{res}       730         85 {txt}{c |}{res}    68,161 
{txt}
{com}. tab de01 de06,m

                     {txt}{c |}    BEFR.: BERUFLICH-BETRIEBL.
  BEFR.: BERUFLICHER {c |}            ANLERNZEIT
AUSBILDUNGSABSCHLUSS {c |} NICHT GEN    GENANNT  NICHT ERH {c |}     Total
{hline 21}{c +}{hline 33}{c +}{hline 10}
      KEIN ABSCHLUSS {c |}{res}     8,729          0      2,497 {txt}{c |}{res}    11,956 
{txt}          ANLERNZEIT {c |}{res}         0      1,892          0 {txt}{c |}{res}     1,892 
{txt}PRAKTIKUM,VOLONTARI. {c |}{res}       349         21        215 {txt}{c |}{res}       585 
{txt}    TEILFACHARBEITER {c |}{res}       581         12          0 {txt}{c |}{res}       593 
{txt}LEHRE:GEWERBL.,LANDW {c |}{res}    16,128         77      1,851 {txt}{c |}{res}    18,056 
{txt} LEHRE:KAUFMAENNISCH {c |}{res}     9,852         34      2,533 {txt}{c |}{res}    12,419 
{txt}    BERUFSFACHSCHULE {c |}{res}     2,843         25        484 {txt}{c |}{res}     3,352 
{txt}          FACHSCHULE {c |}{res}     3,021         22          0 {txt}{c |}{res}     3,043 
{txt}  MEISTER, TECHNIKER {c |}{res}     3,570         31        449 {txt}{c |}{res}     4,050 
{txt}        FH-ABSCHLUSS {c |}{res}     3,114         21        313 {txt}{c |}{res}     3,448 
{txt}  HOCHSCHULABSCHLUSS {c |}{res}     6,337         23        523 {txt}{c |}{res}     6,883 
{txt}   ANDERER ABSCHLUSS {c |}{res}     1,395          0          0 {txt}{c |}{res}     1,395 
{txt}   ANGABE VERWEIGERT {c |}{res}         0          0          2 {txt}{c |}{res}         2 
{txt}        KEINE ANGABE {c |}{res}         0          0         83 {txt}{c |}{res}        83 
{txt}   NICHT GENERIERBAR {c |}{res}       207          0          0 {txt}{c |}{res}       404 
{txt}{hline 21}{c +}{hline 33}{c +}{hline 10}
               Total {c |}{res}    56,126      2,158      8,950 {txt}{c |}{res}    68,161 


                     {txt}{c |}        BEFR.:
                     {c |}  BERUFLICH-BETRIEBL.
  BEFR.: BERUFLICHER {c |}      ANLERNZEIT
AUSBILDUNGSABSCHLUSS {c |} KEINE ANG  TNZ: FILT {c |}     Total
{hline 21}{c +}{hline 22}{c +}{hline 10}
      KEIN ABSCHLUSS {c |}{res}         0        730 {txt}{c |}{res}    11,956 
{txt}          ANLERNZEIT {c |}{res}         0          0 {txt}{c |}{res}     1,892 
{txt}PRAKTIKUM,VOLONTARI. {c |}{res}         0          0 {txt}{c |}{res}       585 
{txt}    TEILFACHARBEITER {c |}{res}         0          0 {txt}{c |}{res}       593 
{txt}LEHRE:GEWERBL.,LANDW {c |}{res}         0          0 {txt}{c |}{res}    18,056 
{txt} LEHRE:KAUFMAENNISCH {c |}{res}         0          0 {txt}{c |}{res}    12,419 
{txt}    BERUFSFACHSCHULE {c |}{res}         0          0 {txt}{c |}{res}     3,352 
{txt}          FACHSCHULE {c |}{res}         0          0 {txt}{c |}{res}     3,043 
{txt}  MEISTER, TECHNIKER {c |}{res}         0          0 {txt}{c |}{res}     4,050 
{txt}        FH-ABSCHLUSS {c |}{res}         0          0 {txt}{c |}{res}     3,448 
{txt}  HOCHSCHULABSCHLUSS {c |}{res}         0          0 {txt}{c |}{res}     6,883 
{txt}   ANDERER ABSCHLUSS {c |}{res}         0          0 {txt}{c |}{res}     1,395 
{txt}   ANGABE VERWEIGERT {c |}{res}         0          0 {txt}{c |}{res}         2 
{txt}        KEINE ANGABE {c |}{res}         0          0 {txt}{c |}{res}        83 
{txt}   NICHT GENERIERBAR {c |}{res}       197          0 {txt}{c |}{res}       404 
{txt}{hline 21}{c +}{hline 22}{c +}{hline 10}
               Total {c |}{res}       197        730 {txt}{c |}{res}    68,161 
{txt}
{com}. tab de01 de07,m

  {txt}BEFR.: BERUFLICHER {c |} BEFR.: TEILFACHARBEITERABSCHLUSS
AUSBILDUNGSABSCHLUSS {c |} NICHT GEN    GENANNT  NICHT ERH {c |}     Total
{hline 21}{c +}{hline 33}{c +}{hline 10}
      KEIN ABSCHLUSS {c |}{res}     6,654          0      4,603 {txt}{c |}{res}    11,956 
{txt}          ANLERNZEIT {c |}{res}     1,452          0        395 {txt}{c |}{res}     1,892 
{txt}PRAKTIKUM,VOLONTARI. {c |}{res}       214          0        347 {txt}{c |}{res}       585 
{txt}    TEILFACHARBEITER {c |}{res}         0        593          0 {txt}{c |}{res}       593 
{txt}LEHRE:GEWERBL.,LANDW {c |}{res}    13,701         29      3,971 {txt}{c |}{res}    18,056 
{txt} LEHRE:KAUFMAENNISCH {c |}{res}     7,694         11      4,412 {txt}{c |}{res}    12,419 
{txt}    BERUFSFACHSCHULE {c |}{res}     2,233          9      1,009 {txt}{c |}{res}     3,352 
{txt}          FACHSCHULE {c |}{res}     3,036          7          0 {txt}{c |}{res}     3,043 
{txt}  MEISTER, TECHNIKER {c |}{res}     3,028          9        906 {txt}{c |}{res}     4,050 
{txt}        FH-ABSCHLUSS {c |}{res}     2,672          2        689 {txt}{c |}{res}     3,448 
{txt}  HOCHSCHULABSCHLUSS {c |}{res}     5,578          7      1,172 {txt}{c |}{res}     6,883 
{txt}   ANDERER ABSCHLUSS {c |}{res}     1,044          0        312 {txt}{c |}{res}     1,395 
{txt}   ANGABE VERWEIGERT {c |}{res}         0          0          2 {txt}{c |}{res}         2 
{txt}        KEINE ANGABE {c |}{res}         0          0         83 {txt}{c |}{res}        83 
{txt}   NICHT GENERIERBAR {c |}{res}         6          0        247 {txt}{c |}{res}       404 
{txt}{hline 21}{c +}{hline 33}{c +}{hline 10}
               Total {c |}{res}    47,312        667     18,148 {txt}{c |}{res}    68,161 


                     {txt}{c |}        BEFR.:
                     {c |} TEILFACHARBEITERABSCH
  BEFR.: BERUFLICHER {c |}         LUSS
AUSBILDUNGSABSCHLUSS {c |} KEINE ANG  TNZ: FILT {c |}     Total
{hline 21}{c +}{hline 22}{c +}{hline 10}
      KEIN ABSCHLUSS {c |}{res}         0        699 {txt}{c |}{res}    11,956 
{txt}          ANLERNZEIT {c |}{res}         0         45 {txt}{c |}{res}     1,892 
{txt}PRAKTIKUM,VOLONTARI. {c |}{res}         0         24 {txt}{c |}{res}       585 
{txt}    TEILFACHARBEITER {c |}{res}         0          0 {txt}{c |}{res}       593 
{txt}LEHRE:GEWERBL.,LANDW {c |}{res}         0        355 {txt}{c |}{res}    18,056 
{txt} LEHRE:KAUFMAENNISCH {c |}{res}         0        302 {txt}{c |}{res}    12,419 
{txt}    BERUFSFACHSCHULE {c |}{res}         0        101 {txt}{c |}{res}     3,352 
{txt}          FACHSCHULE {c |}{res}         0          0 {txt}{c |}{res}     3,043 
{txt}  MEISTER, TECHNIKER {c |}{res}         0        107 {txt}{c |}{res}     4,050 
{txt}        FH-ABSCHLUSS {c |}{res}         0         85 {txt}{c |}{res}     3,448 
{txt}  HOCHSCHULABSCHLUSS {c |}{res}         0        126 {txt}{c |}{res}     6,883 
{txt}   ANDERER ABSCHLUSS {c |}{res}         0         39 {txt}{c |}{res}     1,395 
{txt}   ANGABE VERWEIGERT {c |}{res}         0          0 {txt}{c |}{res}         2 
{txt}        KEINE ANGABE {c |}{res}         0          0 {txt}{c |}{res}        83 
{txt}   NICHT GENERIERBAR {c |}{res}       143          8 {txt}{c |}{res}       404 
{txt}{hline 21}{c +}{hline 22}{c +}{hline 10}
               Total {c |}{res}       143      1,891 {txt}{c |}{res}    68,161 
{txt}
{com}. tab de01 de15,m

  {txt}BEFR.: BERUFLICHER {c |}    BEFR.: HOCHSCHULABSCHLUSS
AUSBILDUNGSABSCHLUSS {c |} NICHT GEN    GENANNT  KEINE ANG {c |}     Total
{hline 21}{c +}{hline 33}{c +}{hline 10}
      KEIN ABSCHLUSS {c |}{res}    11,226          0          0 {txt}{c |}{res}    11,956 
{txt}          ANLERNZEIT {c |}{res}     1,892          0          0 {txt}{c |}{res}     1,892 
{txt}PRAKTIKUM,VOLONTARI. {c |}{res}       585          0          0 {txt}{c |}{res}       585 
{txt}    TEILFACHARBEITER {c |}{res}       593          0          0 {txt}{c |}{res}       593 
{txt}LEHRE:GEWERBL.,LANDW {c |}{res}    18,056          0          0 {txt}{c |}{res}    18,056 
{txt} LEHRE:KAUFMAENNISCH {c |}{res}    12,419          0          0 {txt}{c |}{res}    12,419 
{txt}    BERUFSFACHSCHULE {c |}{res}     3,352          0          0 {txt}{c |}{res}     3,352 
{txt}          FACHSCHULE {c |}{res}     3,043          0          0 {txt}{c |}{res}     3,043 
{txt}  MEISTER, TECHNIKER {c |}{res}     4,050          0          0 {txt}{c |}{res}     4,050 
{txt}        FH-ABSCHLUSS {c |}{res}     3,448          0          0 {txt}{c |}{res}     3,448 
{txt}  HOCHSCHULABSCHLUSS {c |}{res}         0      6,883          0 {txt}{c |}{res}     6,883 
{txt}   ANDERER ABSCHLUSS {c |}{res}     1,395          0          0 {txt}{c |}{res}     1,395 
{txt}   ANGABE VERWEIGERT {c |}{res}         0          0          0 {txt}{c |}{res}         2 
{txt}        KEINE ANGABE {c |}{res}         0          0          0 {txt}{c |}{res}        83 
{txt}   NICHT GENERIERBAR {c |}{res}       207          0        197 {txt}{c |}{res}       404 
{txt}{hline 21}{c +}{hline 33}{c +}{hline 10}
               Total {c |}{res}    60,266      6,883        197 {txt}{c |}{res}    68,161 


                     {txt}{c |}        BEFR.:
  BEFR.: BERUFLICHER {c |}  HOCHSCHULABSCHLUSS
AUSBILDUNGSABSCHLUSS {c |} TNZ: FILT  NICHT GEN {c |}     Total
{hline 21}{c +}{hline 22}{c +}{hline 10}
      KEIN ABSCHLUSS {c |}{res}       730          0 {txt}{c |}{res}    11,956 
{txt}          ANLERNZEIT {c |}{res}         0          0 {txt}{c |}{res}     1,892 
{txt}PRAKTIKUM,VOLONTARI. {c |}{res}         0          0 {txt}{c |}{res}       585 
{txt}    TEILFACHARBEITER {c |}{res}         0          0 {txt}{c |}{res}       593 
{txt}LEHRE:GEWERBL.,LANDW {c |}{res}         0          0 {txt}{c |}{res}    18,056 
{txt} LEHRE:KAUFMAENNISCH {c |}{res}         0          0 {txt}{c |}{res}    12,419 
{txt}    BERUFSFACHSCHULE {c |}{res}         0          0 {txt}{c |}{res}     3,352 
{txt}          FACHSCHULE {c |}{res}         0          0 {txt}{c |}{res}     3,043 
{txt}  MEISTER, TECHNIKER {c |}{res}         0          0 {txt}{c |}{res}     4,050 
{txt}        FH-ABSCHLUSS {c |}{res}         0          0 {txt}{c |}{res}     3,448 
{txt}  HOCHSCHULABSCHLUSS {c |}{res}         0          0 {txt}{c |}{res}     6,883 
{txt}   ANDERER ABSCHLUSS {c |}{res}         0          0 {txt}{c |}{res}     1,395 
{txt}   ANGABE VERWEIGERT {c |}{res}         0          2 {txt}{c |}{res}         2 
{txt}        KEINE ANGABE {c |}{res}         0         83 {txt}{c |}{res}        83 
{txt}   NICHT GENERIERBAR {c |}{res}         0          0 {txt}{c |}{res}       404 
{txt}{hline 21}{c +}{hline 22}{c +}{hline 10}
               Total {c |}{res}       730         85 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. 
. * three categories
. gen edu3cat=.
{txt}(68,161 missing values generated)

{com}. label variable edu3cat "Occ. Quali."
{txt}
{com}. replace edu3cat=1 if education==1 | education==2 
{txt}(14,296 real changes made)

{com}. replace edu3cat=2 if education==3 | education==4 | education==5
{txt}(40,920 real changes made)

{com}. replace edu3cat=3 if education==6 | education==7
{txt}(10,331 real changes made)

{com}. label define edu2 1 "Occ. quali.: basic" 2 "Occ. quali.: vocational" 3 "Occ. quali.: academic"
{txt}
{com}. label values edu3cat edu2
{txt}
{com}. table edu3cat education
{res}
{smcl}
{reset}{...}
{hline 25}{c -}{c TT}{c -}{c -}{hline 16}{c -}{c -}{c -}{hline 9}{c -}{c -}{c -}{hline 24}{c -}{c -}{c -}{hline 31}{c -}{c -}{c -}{hline 41}{c -}{c -}{c -}{hline 19}{c -}{c -}{c -}{hline 20}{c -}{c -}{c -}{hline 6}
{space 25} {c |}  {space 77}highest professional qualification{space 76}
{space 25} {c |}  no qualification   basic VET   vocational qualification   vocational school qualification   higher vocational qualification (Meister)   higher education FH   higher education Uni   {space 1}Total
{hline 25}{c -}{c +}{c -}{c -}{hline 16}{c -}{c -}{c -}{hline 9}{c -}{c -}{c -}{hline 24}{c -}{c -}{c -}{hline 31}{c -}{c -}{c -}{hline 41}{c -}{c -}{c -}{hline 19}{c -}{c -}{c -}{hline 20}{c -}{c -}{c -}{hline 6}
Occ. Quali.{space 14} {c |}  {space 16}   {space 9}   {space 24}   {space 31}   {space 41}   {space 19}   {space 20}   {space 6}
  Occ. quali.: basic{space 5} {c |}  {space 10}{result:11,226}   {space 4}{result:3,070}   {space 24}   {space 31}   {space 41}   {space 19}   {space 20}   {result:14,296}
  Occ. quali.: vocational {c |}  {space 16}   {space 9}   {space 18}{result:30,475}   {space 26}{result:6,395}   {space 36}{result:4,050}   {space 19}   {space 20}   {result:40,920}
  Occ. quali.: academic{space 2} {c |}  {space 16}   {space 9}   {space 24}   {space 31}   {space 41}   {space 14}{result:3,448}   {space 15}{result:6,883}   {result:10,331}
  Total{space 18} {c |}  {space 10}{result:11,226}   {space 4}{result:3,070}   {space 18}{result:30,475}   {space 26}{result:6,395}   {space 36}{result:4,050}   {space 14}{result:3,448}   {space 15}{result:6,883}   {result:65,547}
{hline 25}{c -}{c BT}{c -}{c -}{hline 16}{c -}{c -}{c -}{hline 9}{c -}{c -}{c -}{hline 24}{c -}{c -}{c -}{hline 31}{c -}{c -}{c -}{hline 41}{c -}{c -}{c -}{hline 19}{c -}{c -}{c -}{hline 20}{c -}{c -}{c -}{hline 6}

{com}. fre edu3cat
{res}
{txt}edu3cat {hline 2} Occ. Quali.
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   1 Occ. quali.: basic {c |}{res}      14296      20.97      21.81      21.81
{txt}        2 Occ. quali.:       {c |}{res}      40920      60.03      62.43      84.24
{txt}          vocational         {c |}{res}                                            
{txt}        3 Occ. quali.:       {c |}{res}      10331      15.16      15.76     100.00
{txt}          academic           {c |}{res}                                            
{txt}        Total                {c |}{res}      65547      96.16     100.00           
{txt}Missing .                    {c |}{res}       2614       3.84                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. 
. tab education de01,m

                      {txt}{c |}        BEFR.: BERUFLICHER
 highest professional {c |}       AUSBILDUNGSABSCHLUSS
        qualification {c |} KEIN ABSC  ANLERNZEI  PRAKTIKUM {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
     no qualification {c |}{res}    11,226          0          0 {txt}{c |}{res}    11,226 
{txt}            basic VET {c |}{res}         0      1,892        585 {txt}{c |}{res}     3,070 
{txt}vocational qualificat {c |}{res}         0          0          0 {txt}{c |}{res}    30,475 
{txt}vocational school qua {c |}{res}         0          0          0 {txt}{c |}{res}     6,395 
{txt}higher vocational qua {c |}{res}         0          0          0 {txt}{c |}{res}     4,050 
{txt}  higher education FH {c |}{res}         0          0          0 {txt}{c |}{res}     3,448 
{txt} higher education Uni {c |}{res}         0          0          0 {txt}{c |}{res}     6,883 
{txt}                    . {c |}{res}       730          0          0 {txt}{c |}{res}     2,614 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}    11,956      1,892        585 {txt}{c |}{res}    68,161 


                      {txt}{c |}        BEFR.: BERUFLICHER
 highest professional {c |}       AUSBILDUNGSABSCHLUSS
        qualification {c |} TEILFACHA  LEHRE:GEW  LEHRE:KAU {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
     no qualification {c |}{res}         0          0          0 {txt}{c |}{res}    11,226 
{txt}            basic VET {c |}{res}       593          0          0 {txt}{c |}{res}     3,070 
{txt}vocational qualificat {c |}{res}         0     18,056     12,419 {txt}{c |}{res}    30,475 
{txt}vocational school qua {c |}{res}         0          0          0 {txt}{c |}{res}     6,395 
{txt}higher vocational qua {c |}{res}         0          0          0 {txt}{c |}{res}     4,050 
{txt}  higher education FH {c |}{res}         0          0          0 {txt}{c |}{res}     3,448 
{txt} higher education Uni {c |}{res}         0          0          0 {txt}{c |}{res}     6,883 
{txt}                    . {c |}{res}         0          0          0 {txt}{c |}{res}     2,614 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       593     18,056     12,419 {txt}{c |}{res}    68,161 


                      {txt}{c |}        BEFR.: BERUFLICHER
 highest professional {c |}       AUSBILDUNGSABSCHLUSS
        qualification {c |} BERUFSFAC  FACHSCHUL  MEISTER,  {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
     no qualification {c |}{res}         0          0          0 {txt}{c |}{res}    11,226 
{txt}            basic VET {c |}{res}         0          0          0 {txt}{c |}{res}     3,070 
{txt}vocational qualificat {c |}{res}         0          0          0 {txt}{c |}{res}    30,475 
{txt}vocational school qua {c |}{res}     3,352      3,043          0 {txt}{c |}{res}     6,395 
{txt}higher vocational qua {c |}{res}         0          0      4,050 {txt}{c |}{res}     4,050 
{txt}  higher education FH {c |}{res}         0          0          0 {txt}{c |}{res}     3,448 
{txt} higher education Uni {c |}{res}         0          0          0 {txt}{c |}{res}     6,883 
{txt}                    . {c |}{res}         0          0          0 {txt}{c |}{res}     2,614 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}     3,352      3,043      4,050 {txt}{c |}{res}    68,161 


                      {txt}{c |}        BEFR.: BERUFLICHER
 highest professional {c |}       AUSBILDUNGSABSCHLUSS
        qualification {c |} FH-ABSCHL  HOCHSCHUL  ANDERER A {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
     no qualification {c |}{res}         0          0          0 {txt}{c |}{res}    11,226 
{txt}            basic VET {c |}{res}         0          0          0 {txt}{c |}{res}     3,070 
{txt}vocational qualificat {c |}{res}         0          0          0 {txt}{c |}{res}    30,475 
{txt}vocational school qua {c |}{res}         0          0          0 {txt}{c |}{res}     6,395 
{txt}higher vocational qua {c |}{res}         0          0          0 {txt}{c |}{res}     4,050 
{txt}  higher education FH {c |}{res}     3,448          0          0 {txt}{c |}{res}     3,448 
{txt} higher education Uni {c |}{res}         0      6,883          0 {txt}{c |}{res}     6,883 
{txt}                    . {c |}{res}         0          0      1,395 {txt}{c |}{res}     2,614 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}     3,448      6,883      1,395 {txt}{c |}{res}    68,161 


                      {txt}{c |}        BEFR.: BERUFLICHER
 highest professional {c |}       AUSBILDUNGSABSCHLUSS
        qualification {c |} ANGABE VE  KEINE ANG  NICHT GEN {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
     no qualification {c |}{res}         0          0          0 {txt}{c |}{res}    11,226 
{txt}            basic VET {c |}{res}         0          0          0 {txt}{c |}{res}     3,070 
{txt}vocational qualificat {c |}{res}         0          0          0 {txt}{c |}{res}    30,475 
{txt}vocational school qua {c |}{res}         0          0          0 {txt}{c |}{res}     6,395 
{txt}higher vocational qua {c |}{res}         0          0          0 {txt}{c |}{res}     4,050 
{txt}  higher education FH {c |}{res}         0          0          0 {txt}{c |}{res}     3,448 
{txt} higher education Uni {c |}{res}         0          0          0 {txt}{c |}{res}     6,883 
{txt}                    . {c |}{res}         2         83        404 {txt}{c |}{res}     2,614 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}         2         83        404 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. **education based on highest degree (respondents and parents)
. fre educ feduc meduc
{res}
{txt}educ {hline 2} ALLGEMEINER SCHULABSCHLUSS
{txt}{hline 29}{hline 1}{c TT}{hline 44}
{txt}        {txt}                      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 29}{hline 1}{c +}{hline 44}
{txt}Valid   1  OHNE ABSCHLUSS     {c |}{res}       1348       1.98       1.98       1.98
{txt}        2  VOLKS-,HAUPTSCHULE {c |}{res}      28771      42.21      42.31      44.29
{txt}        3  MITTLERE REIFE     {c |}{res}      20305      29.79      29.86      74.15
{txt}        4  FACHHOCHSCHULREIFE {c |}{res}       3824       5.61       5.62      79.77
{txt}        5  HOCHSCHULREIFE     {c |}{res}      12903      18.93      18.97      98.75
{txt}        6  ANDERER ABSCHLUSS  {c |}{res}        322       0.47       0.47      99.22
{txt}        7  NOCH SCHUELER      {c |}{res}        531       0.78       0.78     100.00
{txt}        Total                 {c |}{res}      68004      99.77     100.00           
{txt}Missing .e KEINE ANGABE       {c |}{res}        156       0.23                      
{txt}        .n DATENFEHLER        {c |}{res}          1       0.00                      
{txt}        Total                 {c |}{res}        157       0.23                      
{txt}Total                         {c |}{res}      68161     100.00                      
{txt}{hline 29}{hline 1}{c BT}{hline 44}
{res}
{txt}feduc {hline 2} VATER: ALLGEMEINER SCHULABSCHLUSS
{txt}{hline 29}{hline 1}{c TT}{hline 44}
{txt}        {txt}                      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 29}{hline 1}{c +}{hline 44}
{txt}Valid   1  OHNE ABSCHLUSS     {c |}{res}       1961       2.88       3.17       3.17
{txt}        2  VOLKS-,HAUPTSCHULE {c |}{res}      43215      63.40      69.84      73.01
{txt}        3  MITTLERE REIFE     {c |}{res}       7978      11.70      12.89      85.90
{txt}        4  FACHHOCHSCHULREIFE {c |}{res}       1732       2.54       2.80      88.70
{txt}        5  HOCHSCHULREIFE     {c |}{res}       6724       9.86      10.87      99.57
{txt}        6  ANDERER ABSCHLUSS  {c |}{res}        266       0.39       0.43     100.00
{txt}        Total                 {c |}{res}      61876      90.78     100.00           
{txt}Missing .c VERWEIGERT         {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT        {c |}{res}       4401       6.46                      
{txt}        .e KEINE ANGABE       {c |}{res}        488       0.72                      
{txt}        .f TNZ: FILTER        {c |}{res}       1394       2.05                      
{txt}        Total                 {c |}{res}       6285       9.22                      
{txt}Total                         {c |}{res}      68161     100.00                      
{txt}{hline 29}{hline 1}{c BT}{hline 44}
{res}
{txt}meduc {hline 2} MUTTER: ALLGEMEINER SCHULABSCHLUSS
{txt}{hline 29}{hline 1}{c TT}{hline 44}
{txt}        {txt}                      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 29}{hline 1}{c +}{hline 44}
{txt}Valid   1  OHNE ABSCHLUSS     {c |}{res}       2672       3.92       4.56       4.56
{txt}        2  VOLKS-,HAUPTSCHULE {c |}{res}      42006      61.63      71.74      76.30
{txt}        3  MITTLERE REIFE     {c |}{res}       9351      13.72      15.97      92.28
{txt}        4  FACHHOCHSCHULREIFE {c |}{res}        786       1.15       1.34      93.62
{txt}        5  HOCHSCHULREIFE     {c |}{res}       3480       5.11       5.94      99.56
{txt}        6  ANDERER ABSCHLUSS  {c |}{res}        257       0.38       0.44     100.00
{txt}        Total                 {c |}{res}      58552      85.90     100.00           
{txt}Missing .a NICHT ERHOBEN      {c |}{res}       5946       8.72                      
{txt}        .c VERWEIGERT         {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT        {c |}{res}       3285       4.82                      
{txt}        .e KEINE ANGABE       {c |}{res}        376       0.55                      
{txt}        Total                 {c |}{res}       9609      14.10                      
{txt}Total                         {c |}{res}      68161     100.00                      
{txt}{hline 29}{hline 1}{c BT}{hline 44}

{com}. 
. recode educ (1 2 = 1 "Edu. degree: basic") (3 4 = 2 "Edu. degree: vocational") (5 = 3 "Edu. degree: Academic") (6 7 =.), gen(IEdu)
{txt}(66,656 differences between {bf:educ} and {bf:IEdu})

{com}. 
. recode educ (6 7 = .), gen(IEdu_detail)
{txt}(853 differences between {bf:educ} and {bf:IEdu_detail})

{com}. 
. recode feduc (1 2 = 1 "Edu: basic") (3 4 = 2 "Edu: vocational") (5 = 3 "Edu: Academic") (6=.), gen(FEdu)
{txt}(59,915 differences between {bf:feduc} and {bf:FEdu})

{com}. 
. recode meduc (1 2 = 1 "Edu: basic") (3 4 = 2 "Edu: vocational") (5 = 3 "Edu: Academic") (6=.), gen(MEdu)
{txt}(55,880 differences between {bf:meduc} and {bf:MEdu})

{com}. 
. 
. gen PEdu = FEdu if FEdu == MEdu
{txt}(23,412 missing values generated)

{com}. replace PEdu = 3 if FEdu == 3 & MEdu < 3
{txt}(3,850 real changes made)

{com}. replace PEdu = 3 if MEdu == 3 & FEdu < 3
{txt}(1,039 real changes made)

{com}. replace PEdu = 2 if FEdu == 2 & MEdu < 2
{txt}(3,411 real changes made)

{com}. replace PEdu = 2 if MEdu == 2 & FEdu < 2
{txt}(2,258 real changes made)

{com}. replace PEdu = FEdu if missing(MEdu)
{txt}(7,265 real changes made, 962 to missing)

{com}. replace PEdu = MEdu if missing(FEdu)
{txt}(3,966 real changes made, 978 to missing)

{com}. 
. label variable IEdu "Highest educational degree"
{txt}
{com}. label variable PEdu "Parents: highest educational degree"
{txt}
{com}. 
. label define pedu2 1 "Parental edu. degree: basic" 2 "Parental edu. degree: vocational" 3 "Parental edu. degree: academic"
{txt}
{com}. lab values PEdu pedu2
{txt}
{com}. fre IEdu PEdu
{res}
{txt}IEdu {hline 2} Highest educational degree
{txt}{hline 29}{hline 1}{c TT}{hline 44}
{txt}        {txt}                      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 29}{hline 1}{c +}{hline 44}
{txt}Valid   1  Edu. degree: basic {c |}{res}      30119      44.19      44.85      44.85
{txt}        2  Edu. degree:       {c |}{res}      24129      35.40      35.93      80.79
{txt}           vocational         {c |}{res}                                            
{txt}        3  Edu. degree:       {c |}{res}      12903      18.93      19.21     100.00
{txt}           Academic           {c |}{res}                                            
{txt}        Total                 {c |}{res}      67151      98.52     100.00           
{txt}Missing .                     {c |}{res}        853       1.25                      
{txt}        .e                    {c |}{res}        156       0.23                      
{txt}        .n                    {c |}{res}          1       0.00                      
{txt}        Total                 {c |}{res}       1010       1.48                      
{txt}Total                         {c |}{res}      68161     100.00                      
{txt}{hline 29}{hline 1}{c BT}{hline 44}
{res}
{txt}PEdu {hline 2} Parents: highest educational degree
{txt}{hline 29}{hline 1}{c TT}{hline 44}
{txt}        {txt}                      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 29}{hline 1}{c +}{hline 44}
{txt}Valid   1  Parental edu.      {c |}{res}      44785      65.70      69.33      69.33
{txt}           degree: basic      {c |}{res}                                            
{txt}        2  Parental edu.      {c |}{res}      11914      17.48      18.44      87.77
{txt}           degree: vocational {c |}{res}                                            
{txt}        3  Parental edu.      {c |}{res}       7899      11.59      12.23     100.00
{txt}           degree: academic   {c |}{res}                                            
{txt}        Total                 {c |}{res}      64598      94.77     100.00           
{txt}Missing .                     {c |}{res}        139       0.20                      
{txt}        .a                    {c |}{res}        728       1.07                      
{txt}        .c                    {c |}{res}          2       0.00                      
{txt}        .d                    {c |}{res}       2420       3.55                      
{txt}        .e                    {c |}{res}        274       0.40                      
{txt}        Total                 {c |}{res}       3563       5.23                      
{txt}Total                         {c |}{res}      68161     100.00                      
{txt}{hline 29}{hline 1}{c BT}{hline 44}

{com}. 
. **Parents: highest vocational qualification
. *father:
. fre fde05-fde15
{res}
{txt}fde05 {hline 2} VATER: KEINEN BERUFSAUSBILDUNGSABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      32619      47.86      84.87      84.87
{txt}        1  GENANNT           {c |}{res}       5814       8.53      15.13     100.00
{txt}        Total                {c |}{res}      38433      56.39     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      25928      38.04                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        722       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        240       0.35                      
{txt}        .f TNZ: FILTER       {c |}{res}        595       0.87                      
{txt}        .k NICHT GENERIERBAR {c |}{res}       2241       3.29                      
{txt}        Total                {c |}{res}      29728      43.61                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}fde06 {hline 2} VATER: BERUFLICH-BETRIEBL. ANLERNZEIT
{txt}{hline 24}{hline 1}{c TT}{hline 44}
{txt}        {txt}                 {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 24}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT {c |}{res}      13518      19.83      93.76      93.76
{txt}        1  GENANNT       {c |}{res}        900       1.32       6.24     100.00
{txt}        Total            {c |}{res}      14418      21.15     100.00           
{txt}Missing .a NICHT ERHOBEN {c |}{res}      52567      77.12                      
{txt}        .c VERWEIGERT    {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT   {c |}{res}        722       1.06                      
{txt}        .e KEINE ANGABE  {c |}{res}        240       0.35                      
{txt}        .f TNZ: FILTER   {c |}{res}        212       0.31                      
{txt}        Total            {c |}{res}      53743      78.85                      
{txt}Total                    {c |}{res}      68161     100.00                      
{txt}{hline 24}{hline 1}{c BT}{hline 44}
{res}
{txt}fde07 {hline 2} VATER: TEILFACHARBEITERABSCHLUSS
{txt}{hline 24}{hline 1}{c TT}{hline 44}
{txt}        {txt}                 {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 24}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT {c |}{res}       5713       8.38      98.03      98.03
{txt}        1  GENANNT       {c |}{res}        115       0.17       1.97     100.00
{txt}        Total            {c |}{res}       5828       8.55     100.00           
{txt}Missing .a NICHT ERHOBEN {c |}{res}      61765      90.62                      
{txt}        .d WEISS NICHT   {c |}{res}        461       0.68                      
{txt}        .e KEINE ANGABE  {c |}{res}         19       0.03                      
{txt}        .f TNZ: FILTER   {c |}{res}         88       0.13                      
{txt}        Total            {c |}{res}      62333      91.45                      
{txt}Total                    {c |}{res}      68161     100.00                      
{txt}{hline 24}{hline 1}{c BT}{hline 44}
{res}
{txt}fde08 {hline 2} VATER: GEWERBLICHE, LANDWIRTSCH. LEHRE
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      20627      30.26      53.67      53.67
{txt}        1  GENANNT           {c |}{res}      17806      26.12      46.33     100.00
{txt}        Total                {c |}{res}      38433      56.39     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      25928      38.04                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        722       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        240       0.35                      
{txt}        .f TNZ: FILTER       {c |}{res}        595       0.87                      
{txt}        .k NICHT GENERIERBAR {c |}{res}       2241       3.29                      
{txt}        Total                {c |}{res}      29728      43.61                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}fde09 {hline 2} VATER: KAUFMAENNISCHE LEHRE
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      34402      50.47      89.51      89.51
{txt}        1  GENANNT           {c |}{res}       4031       5.91      10.49     100.00
{txt}        Total                {c |}{res}      38433      56.39     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      25928      38.04                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        722       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        240       0.35                      
{txt}        .f TNZ: FILTER       {c |}{res}        595       0.87                      
{txt}        .k NICHT GENERIERBAR {c |}{res}       2241       3.29                      
{txt}        Total                {c |}{res}      29728      43.61                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}fde10 {hline 2} VATER: BERUFL. PRAKTIKUM, VOLONTARIAT
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      16793      24.64      98.92      98.92
{txt}        1  GENANNT           {c |}{res}        184       0.27       1.08     100.00
{txt}        Total                {c |}{res}      16977      24.91     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      49563      72.71                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        722       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        240       0.35                      
{txt}        .f TNZ: FILTER       {c |}{res}        277       0.41                      
{txt}        .k NICHT GENERIERBAR {c |}{res}        380       0.56                      
{txt}        Total                {c |}{res}      51184      75.09                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}fde11 {hline 2} VATER: FACHSCHULABSCHLUSS
{txt}{hline 24}{hline 1}{c TT}{hline 44}
{txt}        {txt}                 {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 24}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT {c |}{res}       5633       8.26      96.65      96.65
{txt}        1  GENANNT       {c |}{res}        195       0.29       3.35     100.00
{txt}        Total            {c |}{res}       5828       8.55     100.00           
{txt}Missing .a NICHT ERHOBEN {c |}{res}      61765      90.62                      
{txt}        .d WEISS NICHT   {c |}{res}        461       0.68                      
{txt}        .e KEINE ANGABE  {c |}{res}         19       0.03                      
{txt}        .f TNZ: FILTER   {c |}{res}         88       0.13                      
{txt}        Total            {c |}{res}      62333      91.45                      
{txt}Total                    {c |}{res}      68161     100.00                      
{txt}{hline 24}{hline 1}{c BT}{hline 44}
{res}
{txt}fde12 {hline 2} VATER: BERUFSFACHSCHULABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      16522      24.24      97.32      97.32
{txt}        1  GENANNT           {c |}{res}        455       0.67       2.68     100.00
{txt}        Total                {c |}{res}      16977      24.91     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      49563      72.71                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        722       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        240       0.35                      
{txt}        .f TNZ: FILTER       {c |}{res}        277       0.41                      
{txt}        .k NICHT GENERIERBAR {c |}{res}        380       0.56                      
{txt}        Total                {c |}{res}      51184      75.09                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}fde13 {hline 2} VATER: MEISTER-, TECHNIKERABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      34464      50.56      89.67      89.67
{txt}        1  GENANNT           {c |}{res}       3969       5.82      10.33     100.00
{txt}        Total                {c |}{res}      38433      56.39     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      25928      38.04                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        722       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        240       0.35                      
{txt}        .f TNZ: FILTER       {c |}{res}        595       0.87                      
{txt}        .k NICHT GENERIERBAR {c |}{res}       2241       3.29                      
{txt}        Total                {c |}{res}      29728      43.61                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}fde14 {hline 2} VATER: FACHHOCHSCHULABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      36730      53.89      95.57      95.57
{txt}        1  GENANNT           {c |}{res}       1703       2.50       4.43     100.00
{txt}        Total                {c |}{res}      38433      56.39     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      25928      38.04                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        722       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        240       0.35                      
{txt}        .f TNZ: FILTER       {c |}{res}        595       0.87                      
{txt}        .k NICHT GENERIERBAR {c |}{res}       2241       3.29                      
{txt}        Total                {c |}{res}      29728      43.61                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}fde15 {hline 2} VATER: HOCHSCHULABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      35205      51.65      91.60      91.60
{txt}        1  GENANNT           {c |}{res}       3228       4.74       8.40     100.00
{txt}        Total                {c |}{res}      38433      56.39     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      25928      38.04                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        722       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        240       0.35                      
{txt}        .f TNZ: FILTER       {c |}{res}        595       0.87                      
{txt}        .k NICHT GENERIERBAR {c |}{res}       2241       3.29                      
{txt}        Total                {c |}{res}      29728      43.61                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. gen feducation=. 
{txt}(68,161 missing values generated)

{com}. label variable feducation "father: highest professional qualification"
{txt}
{com}. replace feducation=1 if fde05==1 // kein beruflicher Abschluss
{txt}(5,814 real changes made)

{com}. replace feducation=2 if fde06==1 // Anlernzeit
{txt}(900 real changes made)

{com}. replace feducation=2 if fde07==1 // Teilfacharbeiterabschluss
{txt}(114 real changes made)

{com}. replace feducation=2 if fde10==1 // Gewerbliche Lehre
{txt}(180 real changes made)

{com}. replace feducation=3 if fde08==1 // Kaufmännische Lehre
{txt}(17,806 real changes made)

{com}. replace feducation=3 if fde09==1 // Praktikum
{txt}(4,001 real changes made)

{com}. replace feducation=4 if fde11==1 // Fachschulabschluss
{txt}(195 real changes made)

{com}. replace feducation=4 if fde12==1 // Berufsfachschulabschluss
{txt}(450 real changes made)

{com}. replace feducation=5 if fde13==1 // Meister
{txt}(3,969 real changes made)

{com}. replace feducation=6 if fde14==1 // Fachhochschulabschluss
{txt}(1,703 real changes made)

{com}. replace feducation=7 if fde15==1 // Hochschulabschluss
{txt}(3,228 real changes made)

{com}. 
. label values feducation edu1
{txt}
{com}. 
. gen fedu3cat=.
{txt}(68,161 missing values generated)

{com}. label variable fedu3cat "father: professional qualification"
{txt}
{com}. replace fedu3cat=1 if feducation==1 | feducation==2 
{txt}(6,941 real changes made)

{com}. replace fedu3cat=2 if feducation==3 | feducation==4 | feducation==5
{txt}(25,849 real changes made)

{com}. replace fedu3cat=3 if feducation==6 | feducation==7
{txt}(4,927 real changes made)

{com}. label values fedu3cat edu2
{txt}
{com}. table  feducation fedu3cat
{res}
{smcl}
{reset}{...}
{hline 43}{c -}{c TT}{c -}{c -}{hline 18}{c -}{c -}{c -}{hline 23}{c -}{c -}{c -}{hline 21}{c -}{c -}{c -}{hline 6}
{space 43} {c |}  {space 22}father: professional qualification{space 21}
{space 43} {c |}  Occ. quali.: basic   Occ. quali.: vocational   Occ. quali.: academic   {space 1}Total
{hline 43}{c -}{c +}{c -}{c -}{hline 18}{c -}{c -}{c -}{hline 23}{c -}{c -}{c -}{hline 21}{c -}{c -}{c -}{hline 6}
father: highest professional qualification{space 1} {c |}  {space 18}   {space 23}   {space 21}   {space 6}
  no qualification{space 25} {c |}  {space 13}{result:5,814}   {space 23}   {space 21}   {space 1}{result:5,814}
  basic VET{space 32} {c |}  {space 13}{result:1,127}   {space 23}   {space 21}   {space 1}{result:1,127}
  vocational qualification{space 17} {c |}  {space 18}   {space 17}{result:21,285}   {space 21}   {result:21,285}
  vocational school qualification{space 10} {c |}  {space 18}   {space 20}{result:603}   {space 21}   {space 3}{result:603}
  higher vocational qualification (Meister) {c |}  {space 18}   {space 18}{result:3,961}   {space 21}   {space 1}{result:3,961}
  higher education FH{space 22} {c |}  {space 18}   {space 23}   {space 16}{result:1,699}   {space 1}{result:1,699}
  higher education Uni{space 21} {c |}  {space 18}   {space 23}   {space 16}{result:3,228}   {space 1}{result:3,228}
  Total{space 36} {c |}  {space 13}{result:6,941}   {space 17}{result:25,849}   {space 16}{result:4,927}   {result:37,717}
{hline 43}{c -}{c BT}{c -}{c -}{hline 18}{c -}{c -}{c -}{hline 23}{c -}{c -}{c -}{hline 21}{c -}{c -}{c -}{hline 6}

{com}. fre fedu3cat
{res}
{txt}fedu3cat {hline 2} father: professional qualification
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   1 Occ. quali.: basic {c |}{res}       6941      10.18      18.40      18.40
{txt}        2 Occ. quali.:       {c |}{res}      25849      37.92      68.53      86.94
{txt}          vocational         {c |}{res}                                            
{txt}        3 Occ. quali.:       {c |}{res}       4927       7.23      13.06     100.00
{txt}          academic           {c |}{res}                                            
{txt}        Total                {c |}{res}      37717      55.34     100.00           
{txt}Missing .                    {c |}{res}      30444      44.66                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. 
. *mother
. fre mde05-mde15
{res}
{txt}mde05 {hline 2} MUTTER: KEIN BERUFSAUSBILDUNGSABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      21644      31.75      55.37      55.37
{txt}        1  GENANNT           {c |}{res}      17449      25.60      44.63     100.00
{txt}        Total                {c |}{res}      39093      57.35     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      25928      38.04                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        725       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        217       0.32                      
{txt}        .k NICHT GENERIERBAR {c |}{res}       2196       3.22                      
{txt}        Total                {c |}{res}      29068      42.65                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}mde06 {hline 2} MUTTER: BERUFLICH-BETRIEBL. ANLERNZEIT
{txt}{hline 24}{hline 1}{c TT}{hline 44}
{txt}        {txt}                 {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 24}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT {c |}{res}      13670      20.06      93.31      93.31
{txt}        1  GENANNT       {c |}{res}        980       1.44       6.69     100.00
{txt}        Total            {c |}{res}      14650      21.49     100.00           
{txt}Missing .a NICHT ERHOBEN {c |}{res}      52567      77.12                      
{txt}        .c VERWEIGERT    {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT   {c |}{res}        725       1.06                      
{txt}        .e KEINE ANGABE  {c |}{res}        217       0.32                      
{txt}        Total            {c |}{res}      53511      78.51                      
{txt}Total                    {c |}{res}      68161     100.00                      
{txt}{hline 24}{hline 1}{c BT}{hline 44}
{res}
{txt}mde07 {hline 2} MUTTER: TEILFACHARBEITERABSCHLUSS
{txt}{hline 24}{hline 1}{c TT}{hline 44}
{txt}        {txt}                 {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 24}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT {c |}{res}       5799       8.51      98.17      98.17
{txt}        1  GENANNT       {c |}{res}        108       0.16       1.83     100.00
{txt}        Total            {c |}{res}       5907       8.67     100.00           
{txt}Missing .a NICHT ERHOBEN {c |}{res}      61765      90.62                      
{txt}        .d WEISS NICHT   {c |}{res}        464       0.68                      
{txt}        .e KEINE ANGABE  {c |}{res}         25       0.04                      
{txt}        Total            {c |}{res}      62254      91.33                      
{txt}Total                    {c |}{res}      68161     100.00                      
{txt}{hline 24}{hline 1}{c BT}{hline 44}
{res}
{txt}mde08 {hline 2} MUTTER: GEWERBLICHE, LANDWIRTSCH. LEHRE
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      30544      44.81      78.13      78.13
{txt}        1  GENANNT           {c |}{res}       8549      12.54      21.87     100.00
{txt}        Total                {c |}{res}      39093      57.35     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      25928      38.04                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        725       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        217       0.32                      
{txt}        .k NICHT GENERIERBAR {c |}{res}       2196       3.22                      
{txt}        Total                {c |}{res}      29068      42.65                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}mde09 {hline 2} MUTTER: KAUFMAENNISCHE LEHRE
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      31757      46.59      81.23      81.23
{txt}        1  GENANNT           {c |}{res}       7336      10.76      18.77     100.00
{txt}        Total                {c |}{res}      39093      57.35     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      25928      38.04                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        725       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        217       0.32                      
{txt}        .k NICHT GENERIERBAR {c |}{res}       2196       3.22                      
{txt}        Total                {c |}{res}      29068      42.65                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}mde10 {hline 2} MUTTER: BERUFL. PRAKTIKUM, VOLONTARIAT
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      17036      24.99      99.08      99.08
{txt}        1  GENANNT           {c |}{res}        159       0.23       0.92     100.00
{txt}        Total                {c |}{res}      17195      25.23     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      49563      72.71                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        725       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        217       0.32                      
{txt}        .k NICHT GENERIERBAR {c |}{res}        459       0.67                      
{txt}        Total                {c |}{res}      50966      74.77                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}mde11 {hline 2} MUTTER: FACHSCHULABSCHLUSS
{txt}{hline 24}{hline 1}{c TT}{hline 44}
{txt}        {txt}                 {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 24}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT {c |}{res}       5726       8.40      96.94      96.94
{txt}        1  GENANNT       {c |}{res}        181       0.27       3.06     100.00
{txt}        Total            {c |}{res}       5907       8.67     100.00           
{txt}Missing .a NICHT ERHOBEN {c |}{res}      61765      90.62                      
{txt}        .d WEISS NICHT   {c |}{res}        464       0.68                      
{txt}        .e KEINE ANGABE  {c |}{res}         25       0.04                      
{txt}        Total            {c |}{res}      62254      91.33                      
{txt}Total                    {c |}{res}      68161     100.00                      
{txt}{hline 24}{hline 1}{c BT}{hline 44}
{res}
{txt}mde12 {hline 2} MUTTER: BERUFSFACHSCHULABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      16812      24.67      97.77      97.77
{txt}        1  GENANNT           {c |}{res}        383       0.56       2.23     100.00
{txt}        Total                {c |}{res}      17195      25.23     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      49563      72.71                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        725       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        217       0.32                      
{txt}        .k NICHT GENERIERBAR {c |}{res}        459       0.67                      
{txt}        Total                {c |}{res}      50966      74.77                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}mde13 {hline 2} MUTTER: MEISTER-, TECHNIKERABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      37939      55.66      97.05      97.05
{txt}        1  GENANNT           {c |}{res}       1154       1.69       2.95     100.00
{txt}        Total                {c |}{res}      39093      57.35     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      25928      38.04                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        725       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        217       0.32                      
{txt}        .k NICHT GENERIERBAR {c |}{res}       2196       3.22                      
{txt}        Total                {c |}{res}      29068      42.65                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}mde14 {hline 2} MUTTER: FACHHOCHSCHULABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      38433      56.39      98.31      98.31
{txt}        1  GENANNT           {c |}{res}        660       0.97       1.69     100.00
{txt}        Total                {c |}{res}      39093      57.35     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      25928      38.04                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        725       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        217       0.32                      
{txt}        .k NICHT GENERIERBAR {c |}{res}       2196       3.22                      
{txt}        Total                {c |}{res}      29068      42.65                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}mde15 {hline 2} MUTTER: HOCHSCHULABSCHLUSS
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   0  NICHT GENANNT     {c |}{res}      37594      55.15      96.17      96.17
{txt}        1  GENANNT           {c |}{res}       1499       2.20       3.83     100.00
{txt}        Total                {c |}{res}      39093      57.35     100.00           
{txt}Missing .a NICHT ERHOBEN     {c |}{res}      25928      38.04                      
{txt}        .c VERWEIGERT        {c |}{res}          2       0.00                      
{txt}        .d WEISS NICHT       {c |}{res}        725       1.06                      
{txt}        .e KEINE ANGABE      {c |}{res}        217       0.32                      
{txt}        .k NICHT GENERIERBAR {c |}{res}       2196       3.22                      
{txt}        Total                {c |}{res}      29068      42.65                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. gen meducation=. 
{txt}(68,161 missing values generated)

{com}. label variable meducation "mother: professional qualification"
{txt}
{com}. replace meducation=1 if mde05==1 // kein beruflicher Abschluss
{txt}(17,449 real changes made)

{com}. replace meducation=2 if mde06==1 // Anlernzeit
{txt}(980 real changes made)

{com}. replace meducation=2 if mde07==1 // Teilfacharbeiterabschluss
{txt}(108 real changes made)

{com}. replace meducation=2 if mde10==1 // Gewerbliche Lehre
{txt}(156 real changes made)

{com}. replace meducation=3 if mde08==1 // Kaufmännische Lehre
{txt}(8,549 real changes made)

{com}. replace meducation=3 if mde09==1 // Praktikum
{txt}(7,314 real changes made)

{com}. replace meducation=4 if mde11==1 // Fachschulabschluss
{txt}(181 real changes made)

{com}. replace meducation=4 if mde12==1 // Berufsfachschulabschluss
{txt}(381 real changes made)

{com}. replace meducation=5 if mde13==1 // Meister
{txt}(1,154 real changes made)

{com}. replace meducation=6 if mde14==1 // Fachhochschulabschluss
{txt}(660 real changes made)

{com}. replace meducation=7 if mde15==1 // Hochschulabschluss
{txt}(1,499 real changes made)

{com}. 
. label values meducation edu1
{txt}
{com}. 
. 
. gen medu3cat=.
{txt}(68,161 missing values generated)

{com}. label variable medu3cat "mother: professional qualification"
{txt}
{com}. replace medu3cat=1 if meducation==1 | meducation==2 
{txt}(18,669 real changes made)

{com}. replace medu3cat=2 if meducation==3 | meducation==4 | meducation==5
{txt}(17,517 real changes made)

{com}. replace medu3cat=3 if meducation==6 | meducation==7
{txt}(2,158 real changes made)

{com}. label values medu3cat edu2
{txt}
{com}. table  meducation medu3cat
{res}
{smcl}
{reset}{...}
{hline 43}{c -}{c TT}{c -}{c -}{hline 18}{c -}{c -}{c -}{hline 23}{c -}{c -}{c -}{hline 21}{c -}{c -}{c -}{hline 6}
{space 43} {c |}  {space 22}mother: professional qualification{space 21}
{space 43} {c |}  Occ. quali.: basic   Occ. quali.: vocational   Occ. quali.: academic   {space 1}Total
{hline 43}{c -}{c +}{c -}{c -}{hline 18}{c -}{c -}{c -}{hline 23}{c -}{c -}{c -}{hline 21}{c -}{c -}{c -}{hline 6}
mother: professional qualification{space 9} {c |}  {space 18}   {space 23}   {space 21}   {space 6}
  no qualification{space 25} {c |}  {space 12}{result:17,449}   {space 23}   {space 21}   {result:17,449}
  basic VET{space 32} {c |}  {space 13}{result:1,220}   {space 23}   {space 21}   {space 1}{result:1,220}
  vocational qualification{space 17} {c |}  {space 18}   {space 17}{result:15,811}   {space 21}   {result:15,811}
  vocational school qualification{space 10} {c |}  {space 18}   {space 20}{result:553}   {space 21}   {space 3}{result:553}
  higher vocational qualification (Meister) {c |}  {space 18}   {space 18}{result:1,153}   {space 21}   {space 1}{result:1,153}
  higher education FH{space 22} {c |}  {space 18}   {space 23}   {space 18}{result:659}   {space 3}{result:659}
  higher education Uni{space 21} {c |}  {space 18}   {space 23}   {space 16}{result:1,499}   {space 1}{result:1,499}
  Total{space 36} {c |}  {space 12}{result:18,669}   {space 17}{result:17,517}   {space 16}{result:2,158}   {result:38,344}
{hline 43}{c -}{c BT}{c -}{c -}{hline 18}{c -}{c -}{c -}{hline 23}{c -}{c -}{c -}{hline 21}{c -}{c -}{c -}{hline 6}

{com}. fre medu3cat
{res}
{txt}medu3cat {hline 2} mother: professional qualification
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   1 Occ. quali.: basic {c |}{res}      18669      27.39      48.69      48.69
{txt}        2 Occ. quali.:       {c |}{res}      17517      25.70      45.68      94.37
{txt}          vocational         {c |}{res}                                            
{txt}        3 Occ. quali.:       {c |}{res}       2158       3.17       5.63     100.00
{txt}          academic           {c |}{res}                                            
{txt}        Total                {c |}{res}      38344      56.26     100.00           
{txt}Missing .                    {c |}{res}      29817      43.74                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. 
. *parents highest vocational qualification combined
. gen pedu3cat = fedu3cat if fedu3cat == medu3cat
{txt}(47,570 missing values generated)

{com}. replace pedu3cat = 3 if fedu3cat == 3 & medu3cat < 3
{txt}(3,163 real changes made)

{com}. replace pedu3cat = 3 if medu3cat == 3 & fedu3cat < 3
{txt}(576 real changes made)

{com}. replace pedu3cat = 2 if fedu3cat == 2 & medu3cat < 2
{txt}(10,412 real changes made)

{com}. replace pedu3cat = 2 if medu3cat == 2 & fedu3cat < 2
{txt}(793 real changes made)

{com}. replace pedu3cat = fedu3cat if missing(medu3cat)
{txt}(2,182 real changes made)

{com}. replace pedu3cat = medu3cat if missing(fedu3cat)
{txt}(2,809 real changes made)

{com}. 
. label variable pedu3cat "Parents: occ. quali."
{txt}
{com}. label define pedu3 1 "Parental occ. quali.: basic" 2 "Parental occ. quali.: vocational" 3 "Parental occ. quali.: academic"
{txt}
{com}. label values pedu3cat pedu3
{txt}
{com}. tab pedu3cat,m

            {txt}Parents: occ. quali. {c |}      Freq.     Percent        Cum.
{hline 33}{c +}{hline 35}
     Parental occ. quali.: basic {c |}{res}      7,635       11.20       11.20
{txt}Parental occ. quali.: vocational {c |}{res}     27,280       40.02       51.22
{txt}  Parental occ. quali.: academic {c |}{res}      5,611        8.23       59.46
{txt}                               . {c |}{res}     27,635       40.54      100.00
{txt}{hline 33}{c +}{hline 35}
                           Total {c |}{res}     68,161      100.00
{txt}
{com}. tab pedu3cat PEdu,m

                      {txt}{c |}   Parents: highest educational
                      {c |}              degree
 Parents: occ. quali. {c |} Parental   Parental   Parental  {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
Parental occ. quali.: {c |}{res}     6,886        297        170 {txt}{c |}{res}     7,635 
{txt}Parental occ. quali.: {c |}{res}    18,826      6,569      1,171 {txt}{c |}{res}    27,280 
{txt}Parental occ. quali.: {c |}{res}       207      1,141      4,212 {txt}{c |}{res}     5,611 
{txt}                    . {c |}{res}    18,866      3,907      2,346 {txt}{c |}{res}    27,635 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}    44,785     11,914      7,899 {txt}{c |}{res}    68,161 


                      {txt}{c |}   Parents: highest educational
                      {c |}              degree
 Parents: occ. quali. {c |}         .         .a         .c {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
Parental occ. quali.: {c |}{res}        33          0          0 {txt}{c |}{res}     7,635 
{txt}Parental occ. quali.: {c |}{res}        22          0          0 {txt}{c |}{res}    27,280 
{txt}Parental occ. quali.: {c |}{res}        11          0          0 {txt}{c |}{res}     5,611 
{txt}                    . {c |}{res}        73        728          2 {txt}{c |}{res}    27,635 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       139        728          2 {txt}{c |}{res}    68,161 


                      {txt}{c |}   Parents: highest
                      {c |}  educational degree
 Parents: occ. quali. {c |}        .d         .e {c |}     Total
{hline 22}{c +}{hline 22}{c +}{hline 10}
Parental occ. quali.: {c |}{res}       230         19 {txt}{c |}{res}     7,635 
{txt}Parental occ. quali.: {c |}{res}       669         23 {txt}{c |}{res}    27,280 
{txt}Parental occ. quali.: {c |}{res}        38          2 {txt}{c |}{res}     5,611 
{txt}                    . {c |}{res}     1,483        230 {txt}{c |}{res}    27,635 
{txt}{hline 22}{c +}{hline 22}{c +}{hline 10}
                Total {c |}{res}     2,420        274 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. *TEST: (academic - basic mismatch)
. cap: drop TestEdu3cat
{txt}
{com}. clonevar TestEdu3cat = edu3cat
{txt}(2,614 missing values generated)

{com}. lab var TestEdu3cat "corrected: occupational qualification"
{txt}
{com}. fre educ
{res}
{txt}educ {hline 2} ALLGEMEINER SCHULABSCHLUSS
{txt}{hline 29}{hline 1}{c TT}{hline 44}
{txt}        {txt}                      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 29}{hline 1}{c +}{hline 44}
{txt}Valid   1  OHNE ABSCHLUSS     {c |}{res}       1348       1.98       1.98       1.98
{txt}        2  VOLKS-,HAUPTSCHULE {c |}{res}      28771      42.21      42.31      44.29
{txt}        3  MITTLERE REIFE     {c |}{res}      20305      29.79      29.86      74.15
{txt}        4  FACHHOCHSCHULREIFE {c |}{res}       3824       5.61       5.62      79.77
{txt}        5  HOCHSCHULREIFE     {c |}{res}      12903      18.93      18.97      98.75
{txt}        6  ANDERER ABSCHLUSS  {c |}{res}        322       0.47       0.47      99.22
{txt}        7  NOCH SCHUELER      {c |}{res}        531       0.78       0.78     100.00
{txt}        Total                 {c |}{res}      68004      99.77     100.00           
{txt}Missing .e KEINE ANGABE       {c |}{res}        156       0.23                      
{txt}        .n DATENFEHLER        {c |}{res}          1       0.00                      
{txt}        Total                 {c |}{res}        157       0.23                      
{txt}Total                         {c |}{res}      68161     100.00                      
{txt}{hline 29}{hline 1}{c BT}{hline 44}

{com}. fre TestEdu3cat
{res}
{txt}TestEdu3cat {hline 2} corrected: occupational qualification
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   1 Occ. quali.: basic {c |}{res}      14296      20.97      21.81      21.81
{txt}        2 Occ. quali.:       {c |}{res}      40920      60.03      62.43      84.24
{txt}          vocational         {c |}{res}                                            
{txt}        3 Occ. quali.:       {c |}{res}      10331      15.16      15.76     100.00
{txt}          academic           {c |}{res}                                            
{txt}        Total                {c |}{res}      65547      96.16     100.00           
{txt}Missing .                    {c |}{res}       2614       3.84                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. replace TestEdu3cat = 3 if TestEdu3cat != 3 & educ == 5 & edu3cat == 1 & education == 1 // Hochschulreife
{txt}(1,993 real changes made)

{com}. replace TestEdu3cat = 2 if TestEdu3cat != 2 & educ == 4 & edu3cat == 1 & education == 1 // Fachhochschulreife
{txt}(236 real changes made)

{com}. replace TestEdu3cat = 2 if TestEdu3cat != 2 & educ == 3 & edu3cat == 1 & education == 1 // Mittlerer Reife
{txt}(1,422 real changes made)

{com}. 
. fre TestEdu3cat
{res}
{txt}TestEdu3cat {hline 2} corrected: occupational qualification
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   1 Occ. quali.: basic {c |}{res}      10645      15.62      16.24      16.24
{txt}        2 Occ. quali.:       {c |}{res}      42578      62.47      64.96      81.20
{txt}          vocational         {c |}{res}                                            
{txt}        3 Occ. quali.:       {c |}{res}      12324      18.08      18.80     100.00
{txt}          academic           {c |}{res}                                            
{txt}        Total                {c |}{res}      65547      96.16     100.00           
{txt}Missing .                    {c |}{res}       2614       3.84                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. table TestEdu3cat edu3cat,m
{res}
{smcl}
{reset}{...}
{hline 37}{c -}{c TT}{c -}{c -}{hline 18}{c -}{c -}{c -}{hline 23}{c -}{c -}{c -}{hline 21}{c -}{c -}{c -}{hline 5}{c -}{c -}{c -}{hline 6}
{space 37} {c |}  {space 37}Occ. Quali.{space 37}
{space 37} {c |}  Occ. quali.: basic   Occ. quali.: vocational   Occ. quali.: academic   {space 4}.   {space 1}Total
{hline 37}{c -}{c +}{c -}{c -}{hline 18}{c -}{c -}{c -}{hline 23}{c -}{c -}{c -}{hline 21}{c -}{c -}{c -}{hline 5}{c -}{c -}{c -}{hline 6}
corrected: occupational qualification {c |}  {space 18}   {space 23}   {space 21}   {space 5}   {space 6}
  Occ. quali.: basic{space 17} {c |}  {space 12}{result:10,645}   {space 23}   {space 21}   {space 5}   {result:10,645}
  Occ. quali.: vocational{space 12} {c |}  {space 13}{result:1,658}   {space 17}{result:40,920}   {space 21}   {space 5}   {result:42,578}
  Occ. quali.: academic{space 14} {c |}  {space 13}{result:1,993}   {space 23}   {space 15}{result:10,331}   {space 5}   {result:12,324}
  .{space 34} {c |}  {space 18}   {space 23}   {space 21}   {result:2,614}   {space 1}{result:2,614}
  Total{space 30} {c |}  {space 12}{result:14,296}   {space 17}{result:40,920}   {space 15}{result:10,331}   {result:2,614}   {result:68,161}
{hline 37}{c -}{c BT}{c -}{c -}{hline 18}{c -}{c -}{c -}{hline 23}{c -}{c -}{c -}{hline 21}{c -}{c -}{c -}{hline 5}{c -}{c -}{c -}{hline 6}

{com}. **INCOME
. fre hhinc inc 
{res}
{txt}hhinc {hline 2} HAUSHALTSEINKOMMEN (OFFENE+LISTENANGABE)
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   1                    {c |}{res}          2       0.00       0.00       0.00
{txt}        3                    {c |}{res}          1       0.00       0.00       0.01
{txt}        20                   {c |}{res}          1       0.00       0.00       0.01
{txt}        27                   {c |}{res}          1       0.00       0.00       0.01
{txt}        37                   {c |}{res}          1       0.00       0.00       0.01
{txt}        40                   {c |}{res}          1       0.00       0.00       0.01
{txt}        43                   {c |}{res}          1       0.00       0.00       0.01
{txt}        50                   {c |}{res}          1       0.00       0.00       0.02
{txt}        60                   {c |}{res}          1       0.00       0.00       0.02
{txt}        76                   {c |}{res}          1       0.00       0.00       0.02
{txt}        80                   {c |}{res}          1       0.00       0.00       0.02
{txt}        85                   {c |}{res}          1       0.00       0.00       0.02
{txt}        88                   {c |}{res}          2       0.00       0.00       0.03
{txt}        90                   {c |}{res}          1       0.00       0.00       0.03
{txt}        91                   {c |}{res}          2       0.00       0.00       0.03
{txt}        99                   {c |}{res}          1       0.00       0.00       0.03
{txt}        100                  {c |}{res}          3       0.00       0.01       0.04
{txt}        110                  {c |}{res}          1       0.00       0.00       0.04
{txt}        115                  {c |}{res}          1       0.00       0.00       0.04
{txt}        120                  {c |}{res}          3       0.00       0.01       0.05
{txt}        :                    {c |}          :          :          :          :
{txt}        15000                {c |}{res}          7       0.01       0.01      99.96
{txt}        16000                {c |}{res}          1       0.00       0.00      99.96
{txt}        16345                {c |}{res}          1       0.00       0.00      99.96
{txt}        16500                {c |}{res}          1       0.00       0.00      99.96
{txt}        17000                {c |}{res}          2       0.00       0.00      99.97
{txt}        17500                {c |}{res}          2       0.00       0.00      99.97
{txt}        20000                {c |}{res}          3       0.00       0.01      99.98
{txt}        25000                {c |}{res}          1       0.00       0.00      99.98
{txt}        25700                {c |}{res}          1       0.00       0.00      99.98
{txt}        27500                {c |}{res}          1       0.00       0.00      99.98
{txt}        28000                {c |}{res}          1       0.00       0.00      99.98
{txt}        30000                {c |}{res}          1       0.00       0.00      99.99
{txt}        33000                {c |}{res}          1       0.00       0.00      99.99
{txt}        34000                {c |}{res}          1       0.00       0.00      99.99
{txt}        37800                {c |}{res}          1       0.00       0.00      99.99
{txt}        40000                {c |}{res}          1       0.00       0.00      99.99
{txt}        42000                {c |}{res}          1       0.00       0.00      99.99
{txt}        60000                {c |}{res}          1       0.00       0.00     100.00
{txt}        65000                {c |}{res}          1       0.00       0.00     100.00
{txt}        80400                {c |}{res}          1       0.00       0.00     100.00
{txt}        Total                {c |}{res}      54946      80.61     100.00           
{txt}Missing .c    VERWEIGERT     {c |}{res}       7983      11.71                      
{txt}        .d    WEISS NICHT    {c |}{res}         23       0.03                      
{txt}        .e    KEINE ANGABE   {c |}{res}       2376       3.49                      
{txt}        .k    NICHT          {c |}{res}       2595       3.81                      
{txt}              GENERIERBAR    {c |}{res}                                            
{txt}        .o    KEIN EINKOMMEN {c |}{res}        238       0.35                      
{txt}        Total                {c |}{res}      13215      19.39                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}
{res}
{txt}inc {hline 2} BFR.:NETTOEINKOMMEN(OFFENE+LISTENANGABE)
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   1                    {c |}{res}          2       0.00       0.00       0.00
{txt}        9                    {c |}{res}          1       0.00       0.00       0.01
{txt}        20                   {c |}{res}          1       0.00       0.00       0.01
{txt}        22                   {c |}{res}          1       0.00       0.00       0.01
{txt}        25                   {c |}{res}          4       0.01       0.01       0.02
{txt}        28                   {c |}{res}          1       0.00       0.00       0.02
{txt}        30                   {c |}{res}          4       0.01       0.01       0.03
{txt}        34                   {c |}{res}          1       0.00       0.00       0.03
{txt}        35                   {c |}{res}          1       0.00       0.00       0.03
{txt}        37                   {c |}{res}          2       0.00       0.00       0.03
{txt}        38                   {c |}{res}          1       0.00       0.00       0.04
{txt}        40                   {c |}{res}          7       0.01       0.01       0.05
{txt}        43                   {c |}{res}          2       0.00       0.00       0.05
{txt}        44                   {c |}{res}          1       0.00       0.00       0.06
{txt}        45                   {c |}{res}          2       0.00       0.00       0.06
{txt}        48                   {c |}{res}          1       0.00       0.00       0.06
{txt}        50                   {c |}{res}         22       0.03       0.04       0.10
{txt}        55                   {c |}{res}          3       0.00       0.01       0.11
{txt}        57                   {c |}{res}          1       0.00       0.00       0.11
{txt}        58                   {c |}{res}          2       0.00       0.00       0.12
{txt}        :                    {c |}          :          :          :          :
{txt}        7300                 {c |}{res}          1       0.00       0.00      99.74
{txt}        7500                 {c |}{res}         27       0.04       0.05      99.79
{txt}        8000                 {c |}{res}         14       0.02       0.03      99.81
{txt}        8500                 {c |}{res}          1       0.00       0.00      99.82
{txt}        8750                 {c |}{res}         56       0.08       0.11      99.92
{txt}        9000                 {c |}{res}          4       0.01       0.01      99.93
{txt}        9300                 {c |}{res}          1       0.00       0.00      99.93
{txt}        9500                 {c |}{res}          3       0.00       0.01      99.94
{txt}        10000                {c |}{res}         14       0.02       0.03      99.97
{txt}        10500                {c |}{res}          1       0.00       0.00      99.97
{txt}        11000                {c |}{res}          1       0.00       0.00      99.97
{txt}        12000                {c |}{res}          3       0.00       0.01      99.98
{txt}        12500                {c |}{res}          1       0.00       0.00      99.98
{txt}        15000                {c |}{res}          5       0.01       0.01      99.99
{txt}        15200                {c |}{res}          1       0.00       0.00      99.99
{txt}        17500                {c |}{res}          1       0.00       0.00      99.99
{txt}        18000                {c |}{res}          1       0.00       0.00      99.99
{txt}        20000                {c |}{res}          1       0.00       0.00      99.99
{txt}        33000                {c |}{res}          1       0.00       0.00     100.00
{txt}        60000                {c |}{res}          2       0.00       0.00     100.00
{txt}        Total                {c |}{res}      52129      76.48     100.00           
{txt}Missing .c    VERWEIGERT     {c |}{res}       6811       9.99                      
{txt}        .d    WEISS NICHT    {c |}{res}         79       0.12                      
{txt}        .e    KEINE ANGABE   {c |}{res}       2077       3.05                      
{txt}        .k    NICHT          {c |}{res}         16       0.02                      
{txt}              GENERIERBAR    {c |}{res}                                            
{txt}        .o    KEIN EINKOMMEN {c |}{res}       7049      10.34                      
{txt}        Total                {c |}{res}      16032      23.52                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. *household income (~13.000) some less missing values than personal income (~15.000), but for theoretical reasons personal income preferred
. *di09: subjective feeling income: only 1994 & 2014
. 
. cap: drop inc_cat 
{txt}
{com}. cap: drop inc_help
{txt}
{com}. gen inc_cat = .
{txt}(68,161 missing values generated)

{com}. *fre year
. levelsof year, local(yearvals) 
{res}{txt}1980 1982 1984 1986 1988 1990 1991 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 2012 2014 2016 2018

{com}. 
. foreach vals of local yearvals{c -(}
{txt}  2{com}. cap: drop inc_help
{txt}  3{com}. xtile inc_help = inc if year == `vals', nq(3)
{txt}  4{com}. replace inc_cat = inc_help if year == `vals'
{txt}  5{com}. {c )-}
{txt}(1,932 real changes made)
(1,721 real changes made)
(2,183 real changes made)
(2,215 real changes made)
(1,771 real changes made)
(1,995 real changes made)
(2,468 real changes made)
(2,686 real changes made)
(2,825 real changes made)
(2,616 real changes made)
(2,243 real changes made)
(2,911 real changes made)
(2,239 real changes made)
(2,388 real changes made)
(2,644 real changes made)
(2,787 real changes made)
(2,292 real changes made)
(2,959 real changes made)
(3,065 real changes made)
(3,097 real changes made)
(3,092 real changes made)

{com}. 
. fre inc_cat
{res}
{txt}inc_cat
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   1     {c |}{res}      18142      26.62      34.80      34.80
{txt}        2     {c |}{res}      17236      25.29      33.06      67.87
{txt}        3     {c |}{res}      16751      24.58      32.13     100.00
{txt}        Total {c |}{res}      52129      76.48     100.00           
{txt}Missing .     {c |}{res}      16032      23.52                      
{txt}Total         {c |}{res}      68161     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. lab def inclab 1 "Low Income" 2 "Middle Income" 3 "High Income"
{txt}
{com}. lab val inc_cat inclab
{txt}
{com}. 
. *test
. xtile inctest1990 = inc if year == 1990, nq(3)
{txt}
{com}. tab inctest1990 inc_cat if year == 1990,m // works

         {txt}3 {c |}
 quantiles {c |}                   inc_cat
   of inc  {c |} Low Incom  Middle In  High Inco          . {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
         1 {c |}{res}       691          0          0          0 {txt}{c |}{res}       691 
{txt}         2 {c |}{res}         0        653          0          0 {txt}{c |}{res}       653 
{txt}         3 {c |}{res}         0          0        651          0 {txt}{c |}{res}       651 
{txt}         . {c |}{res}         0          0          0      1,056 {txt}{c |}{res}     1,056 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       691        653        651      1,056 {txt}{c |}{res}     3,051 
{txt}
{com}. drop inctest1990
{txt}
{com}. drop inc_help
{txt}
{com}. 
. **OCCUPATIONAL STATUS (ISEI88)
. fre isei88
{res}
{txt}isei88 {hline 2} BEFR.: ISEI NACH GANZEBOOM I88
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   16                   {c |}{res}        337       0.49       2.02       2.02
{txt}        19                   {c |}{res}         43       0.06       0.26       2.28
{txt}        20                   {c |}{res}         98       0.14       0.59       2.87
{txt}        21                   {c |}{res}         21       0.03       0.13       2.99
{txt}        22                   {c |}{res}         24       0.04       0.14       3.14
{txt}        23                   {c |}{res}        530       0.78       3.18       6.32
{txt}        24                   {c |}{res}         91       0.13       0.55       6.86
{txt}        25                   {c |}{res}        317       0.47       1.90       8.76
{txt}        26                   {c |}{res}        103       0.15       0.62       9.38
{txt}        27                   {c |}{res}         69       0.10       0.41       9.80
{txt}        28                   {c |}{res}         70       0.10       0.42      10.22
{txt}        29                   {c |}{res}        524       0.77       3.14      13.36
{txt}        30                   {c |}{res}        900       1.32       5.40      18.76
{txt}        31                   {c |}{res}        357       0.52       2.14      20.90
{txt}        32                   {c |}{res}        165       0.24       0.99      21.89
{txt}        33                   {c |}{res}        633       0.93       3.80      25.69
{txt}        34                   {c |}{res}        898       1.32       5.39      31.07
{txt}        35                   {c |}{res}         48       0.07       0.29      31.36
{txt}        36                   {c |}{res}         69       0.10       0.41      31.78
{txt}        37                   {c |}{res}        190       0.28       1.14      32.92
{txt}        :                    {c |}          :          :          :          :
{txt}        64                   {c |}{res}         58       0.09       0.35      82.63
{txt}        65                   {c |}{res}        141       0.21       0.85      83.48
{txt}        66                   {c |}{res}        123       0.18       0.74      84.22
{txt}        67                   {c |}{res}        167       0.25       1.00      85.22
{txt}        68                   {c |}{res}         73       0.11       0.44      85.66
{txt}        69                   {c |}{res}       1268       1.86       7.61      93.26
{txt}        70                   {c |}{res}        209       0.31       1.25      94.52
{txt}        71                   {c |}{res}        269       0.39       1.61      96.13
{txt}        73                   {c |}{res}         97       0.14       0.58      96.71
{txt}        74                   {c |}{res}         71       0.10       0.43      97.14
{txt}        77                   {c |}{res}        112       0.16       0.67      97.81
{txt}        78                   {c |}{res}         59       0.09       0.35      98.16
{txt}        79                   {c |}{res}         12       0.02       0.07      98.24
{txt}        80                   {c |}{res}          1       0.00       0.01      98.24
{txt}        82                   {c |}{res}         31       0.05       0.19      98.43
{txt}        83                   {c |}{res}         15       0.02       0.09      98.52
{txt}        85                   {c |}{res}         78       0.11       0.47      98.99
{txt}        87                   {c |}{res}          7       0.01       0.04      99.03
{txt}        88                   {c |}{res}        145       0.21       0.87      99.90
{txt}        90                   {c |}{res}         17       0.02       0.10     100.00
{txt}        Total                {c |}{res}      16670      24.46     100.00           
{txt}Missing .f TNZ: FILTER       {c |}{res}      15866      23.28                      
{txt}        .k NICHT GENERIERBAR {c |}{res}        669       0.98                      
{txt}        .m NICHT ENTHALTEN   {c |}{res}      34956      51.28                      
{txt}        Total                {c |}{res}      51491      75.54                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. bysort year: summarize isei88 // observed from 1999 onwards ... 

{txt}{hline}
-> year = 1980

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}          0

{txt}{hline}
-> year = 1982

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}          0

{txt}{hline}
-> year = 1984

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}          0

{txt}{hline}
-> year = 1986

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}          0

{txt}{hline}
-> year = 1988

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}          0

{txt}{hline}
-> year = 1990

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}          0

{txt}{hline}
-> year = 1991

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}          0

{txt}{hline}
-> year = 1992

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}          0

{txt}{hline}
-> year = 1994

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}          0

{txt}{hline}
-> year = 1996

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}          0

{txt}{hline}
-> year = 1998

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}          0

{txt}{hline}
-> year = 2000

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}      1,824    44.91393    15.40037         16         90

{txt}{hline}
-> year = 2002

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}      1,360    46.47059    15.78733         16         90

{txt}{hline}
-> year = 2004

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}      1,357    45.16286    15.04514         16         90

{txt}{hline}
-> year = 2006

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}      1,548    43.95349     14.9545         16         88

{txt}{hline}
-> year = 2008

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}      1,608    44.66231    15.63519         16         88

{txt}{hline}
-> year = 2010

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}      1,443    45.93555     15.8458         16         90

{txt}{hline}
-> year = 2012

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}      1,833    45.39716    15.75125         16         90

{txt}{hline}
-> year = 2014

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}      1,881    46.74322     16.1367         16         90

{txt}{hline}
-> year = 2016

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}      1,874    47.27535    15.30418         16         90

{txt}{hline}
-> year = 2018

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isei88 {c |}{res}      1,942     47.9171    15.97934         16         88

{txt}
{com}. 
. *same logic as with income, building 3 categories; year-specific
. cap: drop isei_cat 
{txt}
{com}. cap: drop isei_help
{txt}
{com}. gen isei_cat = .
{txt}(68,161 missing values generated)

{com}. 
. foreach vals of numlist  2000 2002 2004 2006 2008 2010 2012 2014 2016 2018 {c -(}
{txt}  2{com}. cap: drop isei_help
{txt}  3{com}. xtile isei_help = isei88 if year == `vals', nq(3)
{txt}  4{com}. replace isei_cat = isei_help if year == `vals'
{txt}  5{com}. {c )-}
{txt}(1,824 real changes made)
(1,360 real changes made)
(1,357 real changes made)
(1,548 real changes made)
(1,608 real changes made)
(1,443 real changes made)
(1,833 real changes made)
(1,881 real changes made)
(1,874 real changes made)
(1,942 real changes made)

{com}. 
. fre isei_cat
{res}
{txt}isei_cat
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   1     {c |}{res}       5934       8.71      35.60      35.60
{txt}        2     {c |}{res}       5591       8.20      33.54      69.14
{txt}        3     {c |}{res}       5145       7.55      30.86     100.00
{txt}        Total {c |}{res}      16670      24.46     100.00           
{txt}Missing .     {c |}{res}      51491      75.54                      
{txt}Total         {c |}{res}      68161     100.00                      
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. 
. *test
. xtile iseitest2000 = isei88 if year == 2000, nq(3)
{txt}
{com}. tab iseitest2000 isei_cat if year == 2000,m // works

         {txt}3 {c |}
 quantiles {c |}                  isei_cat
of isei88  {c |}         1          2          3          . {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
         1 {c |}{res}       629          0          0          0 {txt}{c |}{res}       629 
{txt}         2 {c |}{res}         0        643          0          0 {txt}{c |}{res}       643 
{txt}         3 {c |}{res}         0          0        552          0 {txt}{c |}{res}       552 
{txt}         . {c |}{res}         0          0          0      1,980 {txt}{c |}{res}     1,980 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       629        643        552      1,980 {txt}{c |}{res}     3,804 
{txt}
{com}. drop iseitest2000
{txt}
{com}. drop isei_help
{txt}
{com}. 
. ***Oesch Classes
. fre isco88
{res}
{txt}isco88 {hline 2} BEFR.: JETZIGER BERUF, ISCO 1988
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   1    SOLDAT            {c |}{res}         68       0.10       0.28       0.28
{txt}        2    OFFIZIER          {c |}{res}         14       0.02       0.06       0.34
{txt}        110  STREITKRAEFTE     {c |}{res}         18       0.03       0.08       0.42
{txt}        1110 ANG.GESETZG.KOERP {c |}{res}          1       0.00       0.00       0.42
{txt}             .S.               {c |}{res}                                            
{txt}        1120 LEIT.VERWALT.BEDI {c |}{res}         34       0.05       0.14       0.56
{txt}             EN.               {c |}{res}                                            
{txt}        1130 TRADIT.ORTSVORSTE {c |}{res}          4       0.01       0.02       0.58
{txt}             HER               {c |}{res}                                            
{txt}        1141 LEIT.BED.:POL.PAR {c |}{res}          1       0.00       0.00       0.59
{txt}             TEI               {c |}{res}                                            
{txt}        1142 LEIT.BED.:WIRT.VE {c |}{res}         22       0.03       0.09       0.68
{txt}             RB.               {c |}{res}                                            
{txt}        1143 LEIT.BED.:AND.INT {c |}{res}          4       0.01       0.02       0.69
{txt}             .OR               {c |}{res}                                            
{txt}        1200 GESCHAEFTSLEITER  {c |}{res}          5       0.01       0.02       0.72
{txt}        1210 DIREKTOR,H.GESCH. {c |}{res}        127       0.19       0.53       1.25
{txt}             F.                {c |}{res}                                            
{txt}        1220 OPERATIONSLEITER  {c |}{res}         16       0.02       0.07       1.31
{txt}        1221 OP.LEIT.:LANDWIRT {c |}{res}          3       0.00       0.01       1.33
{txt}             .                 {c |}{res}                                            
{txt}        1222 OP.LEIT.:VERARB.G {c |}{res}         95       0.14       0.40       1.72
{txt}             EW.               {c |}{res}                                            
{txt}        1223 OP.LEIT.:BAUGEWER {c |}{res}         13       0.02       0.05       1.78
{txt}             BE                {c |}{res}                                            
{txt}        1224 OP.LEIT.:HANDEL   {c |}{res}         26       0.04       0.11       1.89
{txt}        1225 OP.LEIT.:HOTEL    {c |}{res}          4       0.01       0.02       1.90
{txt}             U.AE.             {c |}{res}                                            
{txt}        1226 OP.LEIT.:TRANSPOR {c |}{res}         18       0.03       0.08       1.98
{txt}             T                 {c |}{res}                                            
{txt}        1227 OP.LEIT.:GEW.DIEN {c |}{res}         12       0.02       0.05       2.03
{txt}             STE               {c |}{res}                                            
{txt}        1228 OP.LEIT.:REINIGUN {c |}{res}          3       0.00       0.01       2.04
{txt}             G                 {c |}{res}                                            
{txt}        :                      {c |}          :          :          :          :
{txt}        9142 FZG+FENSTER+AE.RE {c |}{res}         12       0.02       0.05      97.87
{txt}             IN.               {c |}{res}                                            
{txt}        9151 BOTEN,PAKETTRAEGE {c |}{res}         19       0.03       0.08      97.95
{txt}             R                 {c |}{res}                                            
{txt}        9152 PFOERTNER,WACHPER {c |}{res}         48       0.07       0.20      98.15
{txt}             S.                {c |}{res}                                            
{txt}        9153 AUTOMATKASSIERER+ {c |}{res}          2       0.00       0.01      98.16
{txt}             AE.               {c |}{res}                                            
{txt}        9160 MUELLSAMMLER      {c |}{res}          3       0.00       0.01      98.18
{txt}             U.AE.             {c |}{res}                                            
{txt}        9161 MUELLSAMMLER      {c |}{res}          8       0.01       0.03      98.21
{txt}        9162 STRASSENKEHRER    {c |}{res}          5       0.01       0.02      98.23
{txt}             U.AE.             {c |}{res}                                            
{txt}        9211 LANDWIRTS.HILFSAR {c |}{res}         11       0.02       0.05      98.28
{txt}             B.                {c |}{res}                                            
{txt}        9212 FORSTWIRTS.HILFSA {c |}{res}          1       0.00       0.00      98.28
{txt}             RB.               {c |}{res}                                            
{txt}        9300 BERGB+BAU+A.HILFS {c |}{res}         14       0.02       0.06      98.34
{txt}             ARB               {c |}{res}                                            
{txt}        9310 BERGBAU+BAUHILFSA {c |}{res}         17       0.02       0.07      98.41
{txt}             RB.               {c |}{res}                                            
{txt}        9311 BERGBAU+STEINBR.H {c |}{res}          1       0.00       0.00      98.41
{txt}             ILF               {c |}{res}                                            
{txt}        9312 BAU+INSTANDH.HILF {c |}{res}          9       0.01       0.04      98.45
{txt}             SA.               {c |}{res}                                            
{txt}        9313 BAUHILFSARB.GEBAE {c |}{res}          1       0.00       0.00      98.46
{txt}             UDE               {c |}{res}                                            
{txt}        9320 HILFSARB.FERTIGUN {c |}{res}         35       0.05       0.15      98.60
{txt}             G                 {c |}{res}                                            
{txt}        9321 MONTAGEHILFSARBEI {c |}{res}          7       0.01       0.03      98.63
{txt}             TER               {c |}{res}                                            
{txt}        9322 HANDPACKER+AND.FE {c |}{res}        103       0.15       0.43      99.06
{txt}             RT.               {c |}{res}                                            
{txt}        9330 TRANSPORT+FRACHTA {c |}{res}          6       0.01       0.03      99.09
{txt}             RB.               {c |}{res}                                            
{txt}        9332 FZG+MASCH.,TIERGE {c |}{res}          1       0.00       0.00      99.09
{txt}             ZOG               {c |}{res}                                            
{txt}        9333 FRACHTARBEITER    {c |}{res}        217       0.32       0.91     100.00
{txt}        Total                  {c |}{res}      23899      35.06     100.00           
{txt}Missing .e   KEINE ANGABE      {c |}{res}        241       0.35                      
{txt}        .f   TNZ: FILTER       {c |}{res}      22378      32.83                      
{txt}        .l   NICHT BESTIMMBAR  {c |}{res}        437       0.64                      
{txt}        .m   NICHT ENTHALTEN   {c |}{res}      21206      31.11                      
{txt}        Total                  {c |}{res}      44262      64.94                      
{txt}Total                          {c |}{res}      68161     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. fre dw01
{res}
{txt}dw01 {hline 2} BEFR.: JETZIGE BERUFLICHE STELLUNG
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   1  LANDWIRT            {c |}{res}        397       0.58       1.15       1.15
{txt}        2  AKADEM.FREIER BERUF {c |}{res}        602       0.88       1.74       2.89
{txt}        3  SONST.SELBSTAENDIGE {c |}{res}       2952       4.33       8.55      11.44
{txt}        4  BEAMT,RICHTER,SOLDA {c |}{res}       2711       3.98       7.85      19.29
{txt}           T                   {c |}{res}                                            
{txt}        5  ANGESTELLTER        {c |}{res}      17146      25.16      49.65      68.94
{txt}        6  ARBEITER            {c |}{res}       9641      14.14      27.92      96.86
{txt}        7  IN AUSBILDUNG       {c |}{res}        926       1.36       2.68      99.55
{txt}        8  MITHELF.FAMILIENANG {c |}{res}        119       0.17       0.34      99.89
{txt}           .                   {c |}{res}                                            
{txt}        9  GENOSSENSCHAFTSBAUE {c |}{res}         38       0.06       0.11     100.00
{txt}           R                   {c |}{res}                                            
{txt}        Total                  {c |}{res}      34532      50.66     100.00           
{txt}Missing .c VERWEIGERT          {c |}{res}          1       0.00                      
{txt}        .e KEINE ANGABE        {c |}{res}        428       0.63                      
{txt}        .f TNZ: FILTER         {c |}{res}      33199      48.71                      
{txt}        .n DATENFEHLER         {c |}{res}          1       0.00                      
{txt}        Total                  {c |}{res}      33629      49.34                      
{txt}Total                          {c |}{res}      68161     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. fre dw02
{res}
{txt}dw02 {hline 2} BEFR.: JETZIGE BERUFL.STELLUNG,KENNZIFF.
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   10 LANDWIRT,<10 HA     {c |}{res}         66       0.10       0.19       0.19
{txt}        11 LANDWIRT,10-19HA    {c |}{res}         92       0.13       0.27       0.46
{txt}        12 LANDWIRT,20-49HA    {c |}{res}        135       0.20       0.39       0.85
{txt}        13 LANDWIRT,>49 HA     {c |}{res}        103       0.15       0.30       1.15
{txt}        14 FREIBER,OHNE        {c |}{res}        102       0.15       0.30       1.45
{txt}           MITARB.             {c |}{res}                                            
{txt}        15 FREIBER,(MAX) 1     {c |}{res}        236       0.35       0.69       2.14
{txt}           MIT.                {c |}{res}                                            
{txt}        16 FREIBER.,2-9MITARB. {c |}{res}        221       0.32       0.64       2.78
{txt}        17 FREIBER.,>9 MIT.    {c |}{res}         40       0.06       0.12       2.89
{txt}        20 SELBST.,OHNE        {c |}{res}        401       0.59       1.17       4.06
{txt}           MITARB.             {c |}{res}                                            
{txt}        21 SELBST.,(MAX.)1     {c |}{res}       1207       1.77       3.51       7.57
{txt}           MIT.                {c |}{res}                                            
{txt}        22 SELBST.,2-9 MIT.    {c |}{res}       1088       1.60       3.16      10.74
{txt}        23 SELBST.,10-49 MIT.  {c |}{res}        209       0.31       0.61      11.35
{txt}        24 SELBST.,>49 MITARB. {c |}{res}         39       0.06       0.11      11.46
{txt}        30 MITHELF.FAMILIENANG {c |}{res}        119       0.17       0.35      11.80
{txt}           .                   {c |}{res}                                            
{txt}        40 BEAMTE,EINF.DIENST  {c |}{res}        215       0.32       0.63      12.43
{txt}        41 BEAMTE,MITTLERER D. {c |}{res}        846       1.24       2.46      14.89
{txt}        42 BEAMTE,GEHOB.DIENST {c |}{res}       1118       1.64       3.25      18.14
{txt}        43 BEAMTE,HOEHERER D.  {c |}{res}        488       0.72       1.42      19.56
{txt}        49 WEHRPFLICHTIGE,ZIVI {c |}{res}         32       0.05       0.09      19.66
{txt}           .                   {c |}{res}                                            
{txt}        50 MEISTER             {c |}{res}        337       0.49       0.98      20.64
{txt}           I.ANGEST.VER        {c |}{res}                                            
{txt}        51 ANGEST,EINFACH.TAET {c |}{res}       2810       4.12       8.17      28.81
{txt}           .                   {c |}{res}                                            
{txt}        52 ANGEST,SCHWIERIG.TA {c |}{res}       7177      10.53      20.88      49.69
{txt}           E                   {c |}{res}                                            
{txt}        53 ANGEST,SELBST.TAETI {c |}{res}       5934       8.71      17.26      66.95
{txt}           G                   {c |}{res}                                            
{txt}        54 ANGEST,FUEHRUNGSTAE {c |}{res}        798       1.17       2.32      69.27
{txt}           T                   {c |}{res}                                            
{txt}        60 ARBEITER,UNGELERNT  {c |}{res}        663       0.97       1.93      71.20
{txt}        61 ARBEITER,ANGELERNT  {c |}{res}       2274       3.34       6.62      77.82
{txt}        62 FACHARB.+GELERNTE   {c |}{res}       5432       7.97      15.80      93.62
{txt}           A.                  {c |}{res}                                            
{txt}        63 VORARB,KOLONNENFUEH {c |}{res}        805       1.18       2.34      95.96
{txt}           R                   {c |}{res}                                            
{txt}        64 MEISTER, POLIERE    {c |}{res}        432       0.63       1.26      97.22
{txt}        65 GENOSSENSCHAFTSBAUE {c |}{res}         38       0.06       0.11      97.33
{txt}           R                   {c |}{res}                                            
{txt}        70 KAUFM+VERWALT-AZUBI {c |}{res}        295       0.43       0.86      98.18
{txt}           S                   {c |}{res}                                            
{txt}        71 GEWERBLICHE AZUBIS  {c |}{res}        444       0.65       1.29      99.48
{txt}        72 HAUSW.+LANDW.AZUBIS {c |}{res}         31       0.05       0.09      99.57
{txt}        73 BEAMTENANWAERTER    {c |}{res}         58       0.09       0.17      99.74
{txt}        74 PRAKTIKANT,VOLONTAE {c |}{res}         91       0.13       0.26     100.00
{txt}           R                   {c |}{res}                                            
{txt}        Total                  {c |}{res}      34376      50.43     100.00           
{txt}Missing .c VERWEIGERT          {c |}{res}          1       0.00                      
{txt}        .e KEINE ANGABE        {c |}{res}        584       0.86                      
{txt}        .f TNZ: FILTER         {c |}{res}      33199      48.71                      
{txt}        .n DATENFEHLER         {c |}{res}          1       0.00                      
{txt}        Total                  {c |}{res}      33785      49.57                      
{txt}Total                          {c |}{res}      68161     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. recode dw01 (1 3 = 1) (2 = 0) (4/9 = 0) (.c .e .f .n = 0), gen(sempl)
{txt}(67,764 differences between {bf:dw01} and {bf:sempl})

{com}. recode dw02 (10/14 20 30/74 = 0) (15 16 21 22 = 1) (17 23 24 = 2) (.c .e .f .n = 0), gen(supvis)
{txt}(68,161 differences between {bf:dw02} and {bf:supvis})

{com}. fre supvis
{res}
{txt}supvis {hline 2} RECODE of dw02 (BEFR.: JETZIGE BERUFL.STELLUNG,KENNZIFF.)
{txt}{hline 13}{hline 1}{c TT}{hline 44}
{txt}        {txt}      {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 13}{hline 1}{c +}{hline 44}
{txt}Valid   0     {c |}{res}      65121      95.54      95.54      95.54
{txt}        1     {c |}{res}       2752       4.04       4.04      99.58
{txt}        2     {c |}{res}        288       0.42       0.42     100.00
{txt}        Total {c |}{res}      68161     100.00     100.00           
{txt}{hline 13}{hline 1}{c BT}{hline 44}

{com}. bysort year: summarize isco88 // observed from 1992 on

{txt}{hline}
-> year = 1980

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}          0

{txt}{hline}
-> year = 1982

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}          0

{txt}{hline}
-> year = 1984

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}          0

{txt}{hline}
-> year = 1986

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}          0

{txt}{hline}
-> year = 1988

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}          0

{txt}{hline}
-> year = 1990

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}          0

{txt}{hline}
-> year = 1991

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}          0

{txt}{hline}
-> year = 1992

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,812    4807.084    2383.509        110       9333

{txt}{hline}
-> year = 1994

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,892    4833.466    2445.119        110       9333

{txt}{hline}
-> year = 1996

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,880    4850.948    2365.388          1       9333

{txt}{hline}
-> year = 1998

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,480    4902.978    2317.357          1       9333

{txt}{hline}
-> year = 2000

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,898    4817.416    2371.899          1       9333

{txt}{hline}
-> year = 2002

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,396    4585.225    2360.454          1       9333

{txt}{hline}
-> year = 2004

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,367    4692.556     2384.91          1       9333

{txt}{hline}
-> year = 2006

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,560    4870.041    2293.959          1       9333

{txt}{hline}
-> year = 2008

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,615    4751.734    2310.529          1       9333

{txt}{hline}
-> year = 2010

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,448     4559.53    2341.237          1       9333

{txt}{hline}
-> year = 2012

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,838    4692.637    2379.122          1       9333

{txt}{hline}
-> year = 2014

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,883    4509.991    2369.751          1       9333

{txt}{hline}
-> year = 2016

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,880    4367.603    2241.972          1       9333

{txt}{hline}
-> year = 2018

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}isco88 {c |}{res}      1,950    4274.673    2279.136          1       9333

{txt}
{com}. cap: drop oeschclass
{txt}
{com}. iscogen oeschclass = oesch5(isco88 sempl supvis), from(isco88)
{res}
{txt}{col 5}variable name:{col 29}{res}oeschclass
{txt}{col 5}variable label:{col 29}{res}Recode of isco88: isco88 to oesch5
{txt}{col 5}storage type:{col 29}{res}byte
{txt}{col 5}matched observations:{col 29}{res}22992
{txt}{col 5}unmatched observations:{col 29}{res}907
{txt}{col 5}missing observations:{col 29}{res}44262
{txt}
{com}. fre oeschclass
{res}
{txt}oeschclass {hline 2} Recode of isco88: isco88 to oesch5
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   1 Higher-grade service {c |}{res}       3849       5.65      16.74      16.74
{txt}          class                {c |}{res}                                            
{txt}        2 Lower-grade service  {c |}{res}       5276       7.74      22.95      39.69
{txt}          class                {c |}{res}                                            
{txt}        3 Small business       {c |}{res}       2090       3.07       9.09      48.78
{txt}          owners               {c |}{res}                                            
{txt}        4 Skilled workers      {c |}{res}       8931      13.10      38.84      87.62
{txt}        5 Unskilled workers    {c |}{res}       2846       4.18      12.38     100.00
{txt}        Total                  {c |}{res}      22992      33.73     100.00           
{txt}Missing .                      {c |}{res}      45169      66.27                      
{txt}Total                          {c |}{res}      68161     100.00                      
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. recode oeschclass (1 2 = 3 "Service Class") (3 = 2 "Small Business Owners") ( 4 5 = 1 "Working Class"), gen(oesch3class)
{txt}(22,992 differences between {bf:oeschclass} and {bf:oesch3class})

{com}. tab oeschclass oesch3class

                      {txt}{c |} RECODE of oeschclass (Recode of
    Recode of isco88: {c |}    isco88: isco88 to oesch5)
     isco88 to oesch5 {c |} Working C  Small Bus  Service C {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
Higher-grade service  {c |}{res}         0          0      3,849 {txt}{c |}{res}     3,849 
{txt}Lower-grade service c {c |}{res}         0          0      5,276 {txt}{c |}{res}     5,276 
{txt}Small business owners {c |}{res}         0      2,090          0 {txt}{c |}{res}     2,090 
{txt}      Skilled workers {c |}{res}     8,931          0          0 {txt}{c |}{res}     8,931 
{txt}    Unskilled workers {c |}{res}     2,846          0          0 {txt}{c |}{res}     2,846 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}    11,777      2,090      9,125 {txt}{c |}{res}    22,992 
{txt}
{com}. 
. ** CONTROL VARIABLES 
. 
. * gender 
. table sex 
{res}
{smcl}
{reset}{...}
{hline 23}{c -}{c TT}{c -}{c -}{hline 9}
{space 23} {c |}  Frequency
{hline 23}{c -}{c +}{c -}{c -}{hline 9}
GESCHLECHT, BEFRAGTE(R) {c |}  {space 9}
  MANN{space 17} {c |}  {space 3}{result:32,947}
  FRAU{space 17} {c |}  {space 3}{result:35,214}
  Total{space 16} {c |}  {space 3}{result:68,161}
{hline 23}{c -}{c BT}{c -}{c -}{hline 9}

{com}. gen female=1 if sex==2
{txt}(32,947 missing values generated)

{com}. replace female=0 if sex==1
{txt}(32,947 real changes made)

{com}. label define fem 0 "male" 1 "female"
{txt}
{com}. label values female fem
{txt}
{com}. label variable female "female"
{txt}
{com}. tab female sex

           {txt}{c |}      GESCHLECHT,
           {c |}      BEFRAGTE(R)
    female {c |}      MANN       FRAU {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      male {c |}{res}    32,947          0 {txt}{c |}{res}    32,947 
{txt}    female {c |}{res}         0     35,214 {txt}{c |}{res}    35,214 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}    32,947     35,214 {txt}{c |}{res}    68,161 
{txt}
{com}. 
. * Age
. label var age "Age"
{txt}
{com}. gen age_sq = age*age
{txt}(109 missing values generated)

{com}. label var age_sq "$(Age)^2$"
{txt}
{com}. 
. 
. *migration background
. fre german
{res}
{txt}german {hline 2} DEUTSCHE STAATSANGEHOERIGKEIT?
{txt}{hline 28}{hline 1}{c TT}{hline 44}
{txt}        {txt}                     {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 28}{hline 1}{c +}{hline 44}
{txt}Valid   1  JA                {c |}{res}      65179      95.63      95.65      95.65
{txt}        2  JA, UND ANDERE    {c |}{res}        371       0.54       0.54      96.19
{txt}        3  NEIN              {c |}{res}       2595       3.81       3.81     100.00
{txt}        Total                {c |}{res}      68145      99.98     100.00           
{txt}Missing .k NICHT GENERIERBAR {c |}{res}         16       0.02                      
{txt}Total                        {c |}{res}      68161     100.00                      
{txt}{hline 28}{hline 1}{c BT}{hline 44}

{com}. recode german (1 2 = 1) (3 = 0), gen(migrabg)
{txt}(2,966 differences between {bf:german} and {bf:migrabg})

{com}. tab migrabg 

  {txt}RECODE of {c |}
     german {c |}
  (DEUTSCHE {c |}
STAATSANGEH {c |}
OERIGKEIT?) {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}      2,595        3.81        3.81
{txt}          1 {c |}{res}     65,550       96.19      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}     68,145      100.00
{txt}
{com}. lab def mblab 0 "Non-German Nationality" 1 "German Nationality"
{txt}
{com}. lab val migrabg mblab
{txt}
{com}. 
. lab  var migrabg "German Nationality"
{txt}
{com}. 
. * Bundesland during youth (only for waves 1991, 2006-2018)
. decode dg10, generate(bulayouth)
{txt}
{com}. table bulayouth
{res}
{smcl}
{reset}{...}
{hline 40}{c -}{c TT}{c -}{c -}{hline 9}
{space 40} {c |}  Frequency
{hline 40}{c -}{c +}{c -}{c -}{hline 9}
BUNDESLAND, WO BEFRAGTER IN JUGEND LEBTE {c |}  {space 9}
  BADEN-WUERTTEMBERG{space 20} {c |}  {space 4}{result:2,263}
  BAYERN{space 32} {c |}  {space 4}{result:2,821}
  BRANDENBURG{space 27} {c |}  {space 4}{result:1,578}
  BREMEN{space 32} {c |}  {space 6}{result:117}
  DATENFEHLER{space 27} {c |}  {space 8}{result:1}
  EHEM. BERLIN-OST{space 22} {c |}  {space 6}{result:458}
  EHEM. BERLIN-WEST{space 21} {c |}  {space 6}{result:358}
  FRUEHERE DT.OSTGEB.{space 19} {c |}  {space 6}{result:594}
  HAMBURG{space 31} {c |}  {space 6}{result:374}
  HESSEN{space 32} {c |}  {space 4}{result:1,418}
  KEINE ANGABE{space 26} {c |}  {space 6}{result:105}
  MECKLENB.-VORPOMMERN{space 18} {c |}  {space 4}{result:1,171}
  NICHT ERHOBEN{space 25} {c |}  {space 3}{result:41,468}
  NIEDERSACHSEN{space 25} {c |}  {space 4}{result:1,915}
  NORDRHEIN-WESTFALEN{space 19} {c |}  {space 4}{result:3,832}
  RHEINLAND-PFALZ{space 23} {c |}  {space 6}{result:951}
  SAARLAND{space 30} {c |}  {space 6}{result:224}
  SACHSEN{space 31} {c |}  {space 4}{result:2,591}
  SACHSEN-ANHALT{space 24} {c |}  {space 4}{result:1,729}
  SCHLESWIG-HOLSTEIN{space 20} {c |}  {space 6}{result:599}
  SONSTIGES{space 29} {c |}  {space 4}{result:2,058}
  THUERINGEN{space 28} {c |}  {space 4}{result:1,536}
  Total{space 33} {c |}  {space 3}{result:68,161}
{hline 40}{c -}{c BT}{c -}{c -}{hline 9}

{com}. 
. **names of federal states need to be in English and EXACT matches of the names in the edu system data (for matching ... )
. replace bulayouth = "BAVARIA" if bula == "BAYERN"
{txt}(2,821 real changes made)

{com}. replace bulayouth = "HESSE" if bula == "HESSEN"
{txt}(1,418 real changes made)

{com}. replace bulayouth = "LOWER SAXONY" if bula == "NIEDERSACHSEN"
{txt}(1,915 real changes made)

{com}. replace bulayouth = "NORTH RHINE-WESTPHALIA" if bula == "NORDRHEIN-WESTFALEN"
{txt}variable {bf}{res}bulayouth{sf}{txt} was {bf}{res}str20{sf}{txt} now {bf}{res}str22{sf}
{txt}(3,832 real changes made)

{com}. replace bulayouth = "RHINELAND-PALATINATE" if bula == "RHEINLAND-PFALZ"
{txt}(951 real changes made)

{com}. replace bulayouth = "SAXONY" if bula == "SACHSEN"
{txt}(2,591 real changes made)

{com}. replace bulayouth = "SAXONY-ANHALT" if bula == "SACHSEN-ANHALT"
{txt}(1,729 real changes made)

{com}. replace bulayouth = "THURINGA" if bula == "THUERINGEN"
{txt}(1,536 real changes made)

{com}. replace bulayouth = "BERLIN (WEST)" if bula == "EHEM. BERLIN-WEST"
{txt}(358 real changes made)

{com}. replace bulayouth = "MECKLENBURG-VORPOMMERN" if bula == "MECKLENB.-VORPOMMERN"
{txt}(1,171 real changes made)

{com}. 
. 
. 
. table bulayouth
{res}
{smcl}
{reset}{...}
{hline 40}{c -}{c TT}{c -}{c -}{hline 9}
{space 40} {c |}  Frequency
{hline 40}{c -}{c +}{c -}{c -}{hline 9}
BUNDESLAND, WO BEFRAGTER IN JUGEND LEBTE {c |}  {space 9}
  BADEN-WUERTTEMBERG{space 20} {c |}  {space 4}{result:2,263}
  BAVARIA{space 31} {c |}  {space 4}{result:2,821}
  BERLIN (WEST){space 25} {c |}  {space 6}{result:358}
  BRANDENBURG{space 27} {c |}  {space 4}{result:1,578}
  BREMEN{space 32} {c |}  {space 6}{result:117}
  DATENFEHLER{space 27} {c |}  {space 8}{result:1}
  EHEM. BERLIN-OST{space 22} {c |}  {space 6}{result:458}
  FRUEHERE DT.OSTGEB.{space 19} {c |}  {space 6}{result:594}
  HAMBURG{space 31} {c |}  {space 6}{result:374}
  HESSE{space 33} {c |}  {space 4}{result:1,418}
  KEINE ANGABE{space 26} {c |}  {space 6}{result:105}
  LOWER SAXONY{space 26} {c |}  {space 4}{result:1,915}
  MECKLENBURG-VORPOMMERN{space 16} {c |}  {space 4}{result:1,171}
  NICHT ERHOBEN{space 25} {c |}  {space 3}{result:41,468}
  NORTH RHINE-WESTPHALIA{space 16} {c |}  {space 4}{result:3,832}
  RHINELAND-PALATINATE{space 18} {c |}  {space 6}{result:951}
  SAARLAND{space 30} {c |}  {space 6}{result:224}
  SAXONY{space 32} {c |}  {space 4}{result:2,591}
  SAXONY-ANHALT{space 25} {c |}  {space 4}{result:1,729}
  SCHLESWIG-HOLSTEIN{space 20} {c |}  {space 6}{result:599}
  SONSTIGES{space 29} {c |}  {space 4}{result:2,058}
  THURINGA{space 30} {c |}  {space 4}{result:1,536}
  Total{space 33} {c |}  {space 3}{result:68,161}
{hline 40}{c -}{c BT}{c -}{c -}{hline 9}

{com}. 
. *attention: includes names such as "Datenfehler", "Sonstiges" etc. (not relevant for merged datasets, as these will not be matched and thus deleted)
. 
. 
. * Year of entry into secondary education 
. gen year_secschool=yborn+10
{txt}(109 missing values generated)

{com}. label variable year_secschool "year of entry into secondary school"
{txt}
{com}. 
. save, replace
{txt}{p 0 4 2}
file {bf}
Allbus_prep_Mar23.dta{rm}
saved
{p_end}

{com}. 
. *** MERGING *** 
. ***************
. 
. *bulayouth, secondary school
. use Allbus_prep_Mar23.dta
{txt}(ALLBUS Kumulation 1980-2018)

{com}. merge m:1 bulayouth year_secschool using Typology_Mar23.dta 
{res}
{txt}{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}          48,211
{txt}{col 9}from master{col 30}{res}          48,116{txt}  (_merge==1)
{col 9}from using{col 30}{res}              95{txt}  (_merge==2)

{col 5}Matched{col 30}{res}          20,045{txt}  (_merge==3)
{col 5}{hline 41}

{com}. keep if _merge==3
{txt}(48,211 observations deleted)

{com}. 
. fre bulayouth
{res}
{txt}bulayouth {hline 2} BUNDESLAND, WO BEFRAGTER IN JUGEND LEBTE
{txt}{hline 30}{hline 1}{c TT}{hline 44}
{txt}        {txt}                       {c |}      Freq.    Percent      Valid       Cum.
{txt}{hline 30}{hline 1}{c +}{hline 44}
{txt}Valid   BADEN-WUERTTEMBERG     {c |}{res}       2027      10.11      10.11      10.11
{txt}        BAVARIA                {c |}{res}       2471      12.33      12.33      22.44
{txt}        BRANDENBURG            {c |}{res}       1365       6.81       6.81      29.25
{txt}        BREMEN                 {c |}{res}         99       0.49       0.49      29.74
{txt}        HAMBURG                {c |}{res}        324       1.62       1.62      31.36
{txt}        HESSE                  {c |}{res}       1248       6.23       6.23      37.59
{txt}        LOWER SAXONY           {c |}{res}       1690       8.43       8.43      46.02
{txt}        MECKLENBURG-VORPOMMERN {c |}{res}       1020       5.09       5.09      51.11
{txt}        NORTH RHINE-WESTPHALIA {c |}{res}       3364      16.78      16.78      67.89
{txt}        RHINELAND-PALATINATE   {c |}{res}        811       4.05       4.05      71.93
{txt}        SAARLAND               {c |}{res}        188       0.94       0.94      72.87
{txt}        SAXONY                 {c |}{res}       2173      10.84      10.84      83.71
{txt}        SAXONY-ANHALT          {c |}{res}       1447       7.22       7.22      90.93
{txt}        SCHLESWIG-HOLSTEIN     {c |}{res}        512       2.55       2.55      93.48
{txt}        THURINGA               {c |}{res}       1306       6.52       6.52     100.00
{txt}        Total                  {c |}{res}      20045     100.00     100.00           
{txt}{hline 30}{hline 1}{c BT}{hline 44}

{com}. 
. *for analyses (multilevel models, standard errors, fixed effects ... )
. egen BuLaYouth = group(bulayouth)
{txt}
{com}. tab bulayouth BuLaYouth

       {txt}BUNDESLAND, WO {c |}
  BEFRAGTER IN JUGEND {c |}         group(bulayouth)
                LEBTE {c |}         1          2          3 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}     2,027          0          0 {txt}{c |}{res}     2,027 
{txt}              BAVARIA {c |}{res}         0      2,471          0 {txt}{c |}{res}     2,471 
{txt}          BRANDENBURG {c |}{res}         0          0      1,365 {txt}{c |}{res}     1,365 
{txt}               BREMEN {c |}{res}         0          0          0 {txt}{c |}{res}        99 
{txt}              HAMBURG {c |}{res}         0          0          0 {txt}{c |}{res}       324 
{txt}                HESSE {c |}{res}         0          0          0 {txt}{c |}{res}     1,248 
{txt}         LOWER SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}     1,690 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0          0          0 {txt}{c |}{res}     1,020 
{txt}NORTH RHINE-WESTPHA.. {c |}{res}         0          0          0 {txt}{c |}{res}     3,364 
{txt} RHINELAND-PALATINATE {c |}{res}         0          0          0 {txt}{c |}{res}       811 
{txt}             SAARLAND {c |}{res}         0          0          0 {txt}{c |}{res}       188 
{txt}               SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}     2,173 
{txt}        SAXONY-ANHALT {c |}{res}         0          0          0 {txt}{c |}{res}     1,447 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0          0 {txt}{c |}{res}       512 
{txt}             THURINGA {c |}{res}         0          0          0 {txt}{c |}{res}     1,306 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}     2,027      2,471      1,365 {txt}{c |}{res}    20,045 


       {txt}BUNDESLAND, WO {c |}
  BEFRAGTER IN JUGEND {c |}         group(bulayouth)
                LEBTE {c |}         4          5          6 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          0 {txt}{c |}{res}     2,027 
{txt}              BAVARIA {c |}{res}         0          0          0 {txt}{c |}{res}     2,471 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}     1,365 
{txt}               BREMEN {c |}{res}        99          0          0 {txt}{c |}{res}        99 
{txt}              HAMBURG {c |}{res}         0        324          0 {txt}{c |}{res}       324 
{txt}                HESSE {c |}{res}         0          0      1,248 {txt}{c |}{res}     1,248 
{txt}         LOWER SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}     1,690 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0          0          0 {txt}{c |}{res}     1,020 
{txt}NORTH RHINE-WESTPHA.. {c |}{res}         0          0          0 {txt}{c |}{res}     3,364 
{txt} RHINELAND-PALATINATE {c |}{res}         0          0          0 {txt}{c |}{res}       811 
{txt}             SAARLAND {c |}{res}         0          0          0 {txt}{c |}{res}       188 
{txt}               SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}     2,173 
{txt}        SAXONY-ANHALT {c |}{res}         0          0          0 {txt}{c |}{res}     1,447 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0          0 {txt}{c |}{res}       512 
{txt}             THURINGA {c |}{res}         0          0          0 {txt}{c |}{res}     1,306 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}        99        324      1,248 {txt}{c |}{res}    20,045 


       {txt}BUNDESLAND, WO {c |}
  BEFRAGTER IN JUGEND {c |}         group(bulayouth)
                LEBTE {c |}         7          8          9 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          0 {txt}{c |}{res}     2,027 
{txt}              BAVARIA {c |}{res}         0          0          0 {txt}{c |}{res}     2,471 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}     1,365 
{txt}               BREMEN {c |}{res}         0          0          0 {txt}{c |}{res}        99 
{txt}              HAMBURG {c |}{res}         0          0          0 {txt}{c |}{res}       324 
{txt}                HESSE {c |}{res}         0          0          0 {txt}{c |}{res}     1,248 
{txt}         LOWER SAXONY {c |}{res}     1,690          0          0 {txt}{c |}{res}     1,690 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0      1,020          0 {txt}{c |}{res}     1,020 
{txt}NORTH RHINE-WESTPHA.. {c |}{res}         0          0      3,364 {txt}{c |}{res}     3,364 
{txt} RHINELAND-PALATINATE {c |}{res}         0          0          0 {txt}{c |}{res}       811 
{txt}             SAARLAND {c |}{res}         0          0          0 {txt}{c |}{res}       188 
{txt}               SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}     2,173 
{txt}        SAXONY-ANHALT {c |}{res}         0          0          0 {txt}{c |}{res}     1,447 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0          0 {txt}{c |}{res}       512 
{txt}             THURINGA {c |}{res}         0          0          0 {txt}{c |}{res}     1,306 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}     1,690      1,020      3,364 {txt}{c |}{res}    20,045 


       {txt}BUNDESLAND, WO {c |}
  BEFRAGTER IN JUGEND {c |}         group(bulayouth)
                LEBTE {c |}        10         11         12 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          0 {txt}{c |}{res}     2,027 
{txt}              BAVARIA {c |}{res}         0          0          0 {txt}{c |}{res}     2,471 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}     1,365 
{txt}               BREMEN {c |}{res}         0          0          0 {txt}{c |}{res}        99 
{txt}              HAMBURG {c |}{res}         0          0          0 {txt}{c |}{res}       324 
{txt}                HESSE {c |}{res}         0          0          0 {txt}{c |}{res}     1,248 
{txt}         LOWER SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}     1,690 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0          0          0 {txt}{c |}{res}     1,020 
{txt}NORTH RHINE-WESTPHA.. {c |}{res}         0          0          0 {txt}{c |}{res}     3,364 
{txt} RHINELAND-PALATINATE {c |}{res}       811          0          0 {txt}{c |}{res}       811 
{txt}             SAARLAND {c |}{res}         0        188          0 {txt}{c |}{res}       188 
{txt}               SAXONY {c |}{res}         0          0      2,173 {txt}{c |}{res}     2,173 
{txt}        SAXONY-ANHALT {c |}{res}         0          0          0 {txt}{c |}{res}     1,447 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0          0          0 {txt}{c |}{res}       512 
{txt}             THURINGA {c |}{res}         0          0          0 {txt}{c |}{res}     1,306 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}       811        188      2,173 {txt}{c |}{res}    20,045 


       {txt}BUNDESLAND, WO {c |}
  BEFRAGTER IN JUGEND {c |}         group(bulayouth)
                LEBTE {c |}        13         14         15 {c |}     Total
{hline 22}{c +}{hline 33}{c +}{hline 10}
   BADEN-WUERTTEMBERG {c |}{res}         0          0          0 {txt}{c |}{res}     2,027 
{txt}              BAVARIA {c |}{res}         0          0          0 {txt}{c |}{res}     2,471 
{txt}          BRANDENBURG {c |}{res}         0          0          0 {txt}{c |}{res}     1,365 
{txt}               BREMEN {c |}{res}         0          0          0 {txt}{c |}{res}        99 
{txt}              HAMBURG {c |}{res}         0          0          0 {txt}{c |}{res}       324 
{txt}                HESSE {c |}{res}         0          0          0 {txt}{c |}{res}     1,248 
{txt}         LOWER SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}     1,690 
{txt}MECKLENBURG-VORPOMM.. {c |}{res}         0          0          0 {txt}{c |}{res}     1,020 
{txt}NORTH RHINE-WESTPHA.. {c |}{res}         0          0          0 {txt}{c |}{res}     3,364 
{txt} RHINELAND-PALATINATE {c |}{res}         0          0          0 {txt}{c |}{res}       811 
{txt}             SAARLAND {c |}{res}         0          0          0 {txt}{c |}{res}       188 
{txt}               SAXONY {c |}{res}         0          0          0 {txt}{c |}{res}     2,173 
{txt}        SAXONY-ANHALT {c |}{res}     1,447          0          0 {txt}{c |}{res}     1,447 
{txt}   SCHLESWIG-HOLSTEIN {c |}{res}         0        512          0 {txt}{c |}{res}       512 
{txt}             THURINGA {c |}{res}         0          0      1,306 {txt}{c |}{res}     1,306 
{txt}{hline 22}{c +}{hline 33}{c +}{hline 10}
                Total {c |}{res}     1,447        512      1,306 {txt}{c |}{res}    20,045 
{txt}
{com}. 
. egen bulacohort = group(bulayouth year_secschool)
{txt}
{com}. summarize bulacohort

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 2}bulacohort {c |}{res}     20,045    415.2757    258.4325          1        881
{txt}
{com}. 
. save Allbus_bulayouth_sec_Mar23.dta, replace 
{txt}{p 0 4 2}
file {bf}
Allbus_bulayouth_sec_Mar23.dta{rm}
saved
{p_end}

{com}. 
. *****drop not-merged allbus & typology datasets
. 
. 
. 
. *************************************************
. *** check outcome var availability per year ***
. *************************************************
. use Allbus_bulayouth_sec_Mar23, clear 
{txt}(ALLBUS Kumulation 1980-2018)

{com}.  
. tab year part1  // 2008 & 2018

{txt}ERHEBUNGSJ {c |}             Participation Index
       AHR {c |}         0         .1         .2         .3 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}       115        284        514        587 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}        45        248        534        689 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       160        532      1,048      1,276 {txt}{c |}{res}     5,293 


{txt}ERHEBUNGSJ {c |}             Participation Index
       AHR {c |}        .4         .5         .6         .7 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}       402        314        154         53 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}       592        392        234         83 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       994        706        388        136 {txt}{c |}{res}     5,293 


{txt}ERHEBUNGSJ {c |}       Participation Index
       AHR {c |}        .8         .9          1 {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
      2008 {c |}{res}        20          7          2 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}        20          2          2 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}        40          9          4 {txt}{c |}{res}     5,293 
{txt}
{com}. tab year convp1 // 2008 & 2018

{txt}ERHEBUNGSJ {c |}      Conventional Participation Index
       AHR {c |}         0        .25         .5        .75 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}       350      1,585        431         81 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}       198      1,930        615         94 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       548      3,515      1,046        175 {txt}{c |}{res}     5,293 


           {txt}{c |} Convention
           {c |}     al
           {c |} Participat
ERHEBUNGSJ {c |} ion Index
       AHR {c |}         1 {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
      2008 {c |}{res}         5 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}         4 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}         9 {txt}{c |}{res}     5,293 
{txt}
{com}. tab year elect // 2008 & 2018

           {txt}{c |}    Participated in
ERHEBUNGSJ {c |}       election
       AHR {c |}        no        yes {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      2008 {c |}{res}       468      1,984 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}       285      2,556 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       753      4,540 {txt}{c |}{res}     5,293 
{txt}
{com}. tab year wrkprty // 2008 & 2018

{txt}ERHEBUNGSJ {c |}    Worked in party
       AHR {c |}        no        yes {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      2008 {c |}{res}     2,331        121 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}     2,650        191 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     4,981        312 {txt}{c |}{res}     5,293 
{txt}
{com}. tab year abstain // 2008 & 2018

           {txt}{c |}   Abstained out of
ERHEBUNGSJ {c |}        protest
       AHR {c |}        no        yes {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      2008 {c |}{res}     2,231        221 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}     2,659        182 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     4,890        403 {txt}{c |}{res}     5,293 
{txt}
{com}. tab year protvote // 2008 & 2018

{txt}ERHEBUNGSJ {c |}     Protest voted
       AHR {c |}        no        yes {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      2008 {c |}{res}     2,068        384 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}     2,312        529 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     4,380        913 {txt}{c |}{res}     5,293 
{txt}
{com}. 
. tab year unconvp // 2008 & 2018

{txt}ERHEBUNGSJ {c |}     Unconventional Participation Index
       AHR {c |}         0   .1666667   .3333333         .5 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}       295        630        692        428 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}       239        673        793        588 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       534      1,303      1,485      1,016 {txt}{c |}{res}     5,293 


           {txt}{c |}   Unconventional Participation
ERHEBUNGSJ {c |}              Index
       AHR {c |}  .6666667   .8333333          1 {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
      2008 {c |}{res}       280        101         26 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}       358        159         31 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}       638        260         57 {txt}{c |}{res}     5,293 
{txt}
{com}. tab year opinion //  2008 & 2018

{txt}ERHEBUNGSJ {c |} Told friends opinion
       AHR {c |}        no        yes {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      2008 {c |}{res}       531      1,921 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}       514      2,327 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     1,045      4,248 {txt}{c |}{res}     5,293 
{txt}
{com}. tab year discuss // 2008 & 2018

           {txt}{c |}  Participated public
ERHEBUNGSJ {c |}      discussion
       AHR {c |}        no        yes {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      2008 {c |}{res}     1,693        759 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}     1,876        965 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     3,569      1,724 {txt}{c |}{res}     5,293 
{txt}
{com}. tab year initiv // 2008 & 2018

           {txt}{c |} Participated citizen
ERHEBUNGSJ {c |}      initiative
       AHR {c |}        no        yes {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      2008 {c |}{res}     2,162        290 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}     2,480        361 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     4,642        651 {txt}{c |}{res}     5,293 
{txt}
{com}. tab year unlawdem // 2008 & 2018

           {txt}{c |} Participated unlawful
ERHEBUNGSJ {c |}     demonstration
       AHR {c |}        no        yes {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      2008 {c |}{res}     2,334        118 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}     2,702        139 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     5,036        257 {txt}{c |}{res}     5,293 
{txt}
{com}. tab year demo // 2008 & 2018

           {txt}{c |}  Participated lawful
ERHEBUNGSJ {c |}     demonstration
       AHR {c |}        no        yes {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      2008 {c |}{res}     1,823        629 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}     1,958        883 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     3,781      1,512 {txt}{c |}{res}     5,293 
{txt}
{com}. tab year petition // 2008 & 2018

{txt}ERHEBUNGSJ {c |}    Signed petition
       AHR {c |}        no        yes {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      2008 {c |}{res}     1,090      1,362 {txt}{c |}{res}     2,452 
{txt}      2018 {c |}{res}     1,080      1,761 {txt}{c |}{res}     2,841 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}     2,170      3,123 {txt}{c |}{res}     5,293 
{txt}
{com}. 
. tab year polint // 1991 & 2006-2018 (2yrs)

{txt}ERHEBUNGSJ {c |}             Political Interest
       AHR {c |} not at al        .25         .5        .75 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      1991 {c |}{res}       109        346        824        357 {txt}{c |}{res}     1,801 
{txt}      2006 {c |}{res}       157        450      1,074        494 {txt}{c |}{res}     2,398 
{txt}      2008 {c |}{res}       158        349      1,186        581 {txt}{c |}{res}     2,454 
{txt}      2010 {c |}{res}       158        378        910        492 {txt}{c |}{res}     2,162 
{txt}      2012 {c |}{res}       279        558      1,107        526 {txt}{c |}{res}     2,716 
{txt}      2014 {c |}{res}       135        420      1,187        713 {txt}{c |}{res}     2,798 
{txt}      2016 {c |}{res}       149        441      1,200        724 {txt}{c |}{res}     2,859 
{txt}      2018 {c |}{res}        74        299      1,363        794 {txt}{c |}{res}     2,843 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}     1,219      3,241      8,851      4,681 {txt}{c |}{res}    20,031 


           {txt}{c |} Political
ERHEBUNGSJ {c |}  Interest
       AHR {c |} very inte {c |}     Total
{hline 11}{c +}{hline 11}{c +}{hline 10}
      1991 {c |}{res}       165 {txt}{c |}{res}     1,801 
{txt}      2006 {c |}{res}       223 {txt}{c |}{res}     2,398 
{txt}      2008 {c |}{res}       180 {txt}{c |}{res}     2,454 
{txt}      2010 {c |}{res}       224 {txt}{c |}{res}     2,162 
{txt}      2012 {c |}{res}       246 {txt}{c |}{res}     2,716 
{txt}      2014 {c |}{res}       343 {txt}{c |}{res}     2,798 
{txt}      2016 {c |}{res}       345 {txt}{c |}{res}     2,859 
{txt}      2018 {c |}{res}       313 {txt}{c |}{res}     2,843 
{txt}{hline 11}{c +}{hline 11}{c +}{hline 10}
     Total {c |}{res}     2,039 {txt}{c |}{res}    20,031 
{txt}
{com}. 
. tab year peff // 2008 & 2018

{txt}ERHEBUNGSJ {c |}          Political Efficacy Index
       AHR {c |}         0   .0666667   .1333333         .2 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}        30         54        101        124 {txt}{c |}{res}     2,370 
{txt}      2018 {c |}{res}         9         29         82        111 {txt}{c |}{res}     2,750 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}        39         83        183        235 {txt}{c |}{res}     5,120 


{txt}ERHEBUNGSJ {c |}          Political Efficacy Index
       AHR {c |}  .2666667   .3333333         .4   .4666667 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}       184        235        295        339 {txt}{c |}{res}     2,370 
{txt}      2018 {c |}{res}       167        263        371        393 {txt}{c |}{res}     2,750 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       351        498        666        732 {txt}{c |}{res}     5,120 


{txt}ERHEBUNGSJ {c |}          Political Efficacy Index
       AHR {c |}  .5333334         .6   .6666667   .7333333 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}       298        286        192        113 {txt}{c |}{res}     2,370 
{txt}      2018 {c |}{res}       390        324        257        153 {txt}{c |}{res}     2,750 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       688        610        449        266 {txt}{c |}{res}     5,120 


{txt}ERHEBUNGSJ {c |}          Political Efficacy Index
       AHR {c |}        .8   .8666667   .9333333          1 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}        70         26         21          2 {txt}{c |}{res}     2,370 
{txt}      2018 {c |}{res}       120         59         17          5 {txt}{c |}{res}     2,750 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       190         85         38          7 {txt}{c |}{res}     5,120 
{txt}
{com}. tab year intpeff // 2008 & 2018

{txt}ERHEBUNGSJ {c |}      Internal Political Efficacy Index
       AHR {c |}         0   .1111111   .2222222   .3333333 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}       102        109        201        326 {txt}{c |}{res}     2,415 
{txt}      2018 {c |}{res}        65         96        190        338 {txt}{c |}{res}     2,799 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       167        205        391        664 {txt}{c |}{res}     5,214 


{txt}ERHEBUNGSJ {c |}      Internal Political Efficacy Index
       AHR {c |}  .4444444   .5555556   .6666667   .7777778 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}       346        396        367        239 {txt}{c |}{res}     2,415 
{txt}      2018 {c |}{res}       455        541        427        313 {txt}{c |}{res}     2,799 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       801        937        794        552 {txt}{c |}{res}     5,214 


           {txt}{c |}  Internal Political
ERHEBUNGSJ {c |}    Efficacy Index
       AHR {c |}  .8888889          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
      2008 {c |}{res}       183        146 {txt}{c |}{res}     2,415 
{txt}      2018 {c |}{res}       227        147 {txt}{c |}{res}     2,799 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       410        293 {txt}{c |}{res}     5,214 
{txt}
{com}. tab year pecomplx // 2008 & 2018

           {txt}{c |}  Politics is too complex (higher values =
ERHEBUNGSJ {c |}                  disagree)
       AHR {c |}         0   .3333333   .6666667  fully agr {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}       312        609        908        613 {txt}{c |}{res}     2,442 
{txt}      2018 {c |}{res}       254        761      1,129        685 {txt}{c |}{res}     2,829 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       566      1,370      2,037      1,298 {txt}{c |}{res}     5,271 
{txt}
{com}. tab year peactgrp // 2008 & 2018

{txt}ERHEBUNGSJ {c |}     Can assume active role in pol group
       AHR {c |} fully agr  rather ag  rather di  fully dis {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}       285        565        856        723 {txt}{c |}{res}     2,429 
{txt}      2018 {c |}{res}       298        720      1,124        678 {txt}{c |}{res}     2,820 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       583      1,285      1,980      1,401 {txt}{c |}{res}     5,249 
{txt}
{com}. tab year extpeff //  2008 & 2018

{txt}ERHEBUNGSJ {c |}      External Political Efficacy Index
       AHR {c |}         0   .1666667   .3333333         .5 {c |}     Total
{hline 11}{c +}{hline 44}{c +}{hline 10}
      2008 {c |}{res}       338        499        624        566 {txt}{c |}{res}     2,397 
{txt}      2018 {c |}{res}       265        476        708        683 {txt}{c |}{res}     2,783 
{txt}{hline 11}{c +}{hline 44}{c +}{hline 10}
     Total {c |}{res}       603        975      1,332      1,249 {txt}{c |}{res}     5,180 


           {txt}{c |}   External Political Efficacy
ERHEBUNGSJ {c |}              Index
       AHR {c |}  .6666667   .8333334          1 {c |}     Total
{hline 11}{c +}{hline 33}{c +}{hline 10}
      2008 {c |}{res}       295         61         14 {txt}{c |}{res}     2,397 
{txt}      2018 {c |}{res}       549         80         22 {txt}{c |}{res}     2,783 
{txt}{hline 11}{c +}{hline 33}{c +}{hline 10}
     Total {c |}{res}       844        141         36 {txt}{c |}{res}     5,180 
{txt}
{com}. 
. 
. erase Typology_Mar23.dta
{txt}
{com}. erase Allbus_prep_Mar23.dta
{txt}
{com}. 
. 
. tab compr_school        if GDR == 1,m

{txt}Comprehensi {c |}
  ve School {c |}
       Form {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          . {c |}{res}      6,159      100.00      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      6,159      100.00
{txt}
{com}. tab share_gym           if GDR == 1,m

  {txt}Gymnasium {c |}
    as % of {c |}
 Schools w. {c |}
     Abitur {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          . {c |}{res}      6,159      100.00      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      6,159      100.00
{txt}
{com}. tab duration_prim       if GDR == 1,m

   {txt}Duration {c |}
    Primary {c |}
  Schooling {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          . {c |}{res}      6,159      100.00      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      6,159      100.00
{txt}
{com}. tab destrat_index       if GDR == 1,m

{txt}De-Stratifi {c |}
     cation {c |}
      Index {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          . {c |}{res}      6,159      100.00      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      6,159      100.00
{txt}
{com}. tab mod_edsys           if GDR == 1,m

              {txt}Binary {c |}
   De-stratification {c |}
               Index {c |}      Freq.     Percent        Cum.
{hline 21}{c +}{hline 35}
                   . {c |}{res}      6,159      100.00      100.00
{txt}{hline 21}{c +}{hline 35}
               Total {c |}{res}      6,159      100.00
{txt}
{com}. *all missing!
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\Nadja Wehl\Nextcloud\Education Cluster Project\Project Work\Research\SG NW MB Feedback effects Germany\Empirics\Datasets, do-files\DataPreparationlog.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}10 Jun 2024, 19:44:00
{txt}{.-}
{smcl}
{txt}{sf}{ul off}